2 Replies Latest reply on Sep 22, 2009 7:53 AM by mattc1

    Hiding nodes in Tree

    mattc1

      Hello,

      We would like to hide/filter out nodes in our tree based on a checkbox selection. Is there a recommended way to not show a node or should we just remove that node from the data model and rerender the tree?

      -matt

        • 1. Re: Hiding nodes in Tree
          ilya_shaikovsky

          the way using actual model changes seems more clear for me.

          • 2. Re: Hiding nodes in Tree
            mattc1

            Can you provide an example of this? Here's what I am trying to do. I have a checkbox that when I uncheck it I want to remove/hide certain nodes from the tree. So I hooked up a onchange action method to the checkbox and in that method I walk the tree and remove nodes using the tree.removeNode() method. Then I rerender the tree. After the rerender the nodes in the tree I removed are still visible.

            -matt