Announcement

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

    Limiting depth of TreeGrid

    I need to limit the max depth a user can drag and drop a node.

    For eg. Taking root level as level 1, i want to limit user to only drop till the 3rd level, in other words, only a tree of 3 levels is allowed.

    I tried to change the node values onDropEvent, but it will create a duplicate with the changed valued and end up causing alot of errors due to duplicate keys.

    Kindly advise, thanks!

    #2
    *bump

    Help needed.

    Comment


      #3
      First occurrence for "smartgwt treegrid limit depth" and no answer yet...

      Here is what I did:

      // the default value, can be ommited
      treeGrid.getTree().setIsFolderProperty("isFolder");

      After that, I created a property on my DataSource with the name isFolder and set "true" or "false" accordingly for each record.

      Comment

      Working...
      X