I suggest you ...

TreeView "expand" event does not get fired, when child UL is empty

Its a small thing, but annoying.

i dynamically add subitems to the tree on expansion.
therefore i do not need to load the whole data on start.

so, on the tree init i just have on the items, that contain children an <ul></ul> to indicate it has children.
that works just as expected.
but when the user clicks on the expand icon, the event treeView.expand does not get fired.

My current workaround is, to add an invisible dummy
<ul><li style="visibility:hidden"></li></ul> to indicate there are subitems.
and when the expand event runs, loading the item, and removing the dummy...
Thats far from perfect.

2 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    christoph richterchristoph richter shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    0 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...

      Feedback and Knowledge Base