Announcement

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

    Tree Drag Reparent if the new parent doesn't have any children yet

    Hello,

    Is it possible to drag reparent into a leaf, i.e. the new parent doesn't have any children yet? We're using Isomorphic SmartClient/SmartGWT Framework (SNAPSHOT_v10.1d_2015-10-07/Enterprise Deployment 2015-10-07)
    Showcase example doesn't allow this either. Is it by design or there is a way to achieve it?

    #2
    The framework makes a distinction between "folders" and "leaves". Leaves cannot contain children.
    In your usage, you should have such nodes be empty folders rather than leaves.

    Take a look at the defaultIsFolder / isFolder properties

    Note: there is also a canDropOnLeaves attribute to enable the user-interface -- allowing the user to actually drop onto a leaf - but this typically implies custom drag/drop behavior as the Tree data object will not reparent a node under a "leaf" node - just under a folder.

    Regards
    Isomorphic Software

    Comment

    Working...
    X