Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    TreeGrid Empty Parent Folder Causes Tree To Collapse

    1) v8.3p_2012-11-25/PowerEdition Deployment (built 2012-11-25)

    So I'm generating the 'structure' for my TreeGrid in another application and storing it in a database table.

    Initially, some of my 'leaf' nodes need to be empty folders which will eventually get 'loaded' with real 'leaves'.

    However, when I set a node to isFolder = true, Smart GWT draws a +/- box in front of the folder icon. That's ok but when a user clicks on the +/- to see what, if anything is beneath the folder, the whole sub-tree collapses. This is NOT good and seems like a bug to me.

    See screenshots attached of my database table, UI before click, UI after click.

    Any idea what's happening? I haven't implemented any custom 'node' click or select handlers.

    One 'workaround' I've found is to leave the 'FOLDER' as isFolder = FALSE until there are actually leaves UNDER the node and then update the isFolder for that folder in the database but I don't see why Smart GWT should collapse the whole sub-tree when there's an empty folder.
    Attached Files
Working...
X