Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
380
How to Expand All and Collapse All
posted

Hey Guys,

I'm fairly new to Infragistics and could not find anything on Google with an example code on how to expand all or collapse all nodes of a webdatatree (didn't even find a way to expand a single node).

Any help is much appreciated! :)

Thanks!

Wagner

  • 380
    Verified Answer
    posted

    Now I realize I posted this in the wrong forum (this is the WebTree, my problem is with the WebDataTree).

     

    Regardless, I did find a possible solution (to be tested yet), something like this:

     

                foreach (DataTreeNode node in CategoriesTree.AllNodes)

                {

                    node.CollapseChildren(); // or ExpandChildren() 

                } 

    Thanks!

    Wagner Danda da Silva