How would I create a JavaScript-Function that checks all nodes in a tree and expands the tree at the same time?
And how would I do the reverse (uncheck all nodes and collapse the entire tree)?
Thanks
s.
1 Answer, 1 is accepted
0
Atanas Korchev
Telerik team
answered on 29 May 2008, 03:50 PM
Hello scrut,
You can use the get_allNodes() method to access all tree nodes. Then you can easily traverse them and use their set_checked(), set_expanded() methods to check/uncheck and expand/collapse them.
The following documentation topics may be helpful: