Announcement

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

    Showing node in TreeGrid

    Hello!

    I have the TreeGrid with loadOnDemand: false (so it's preloaded).
    How can I show (and select) some node in this Tree (it may be folder or leaf) given by it's id? I want to open only nodes in the path from root to this node, others should remain coalesced.
    Is there some api function to do it?

    Initial tree state is coalesced (only root node is shown).

    Thank you.

    #2
    Tree.findById gets you the node, you can then use getParent() and openFolder() until you reach root.

    Comment


      #3
      Thank you! I'll do as you suggest.
      But maybe such function should be added to standard library? It may be useful to others.

      Comment


        #4
        We may add a utility method for this in a later version.

        Comment

        Working...
        X