Working with Trees > Classes > TreeList > TreeList.collapseAll
collapseAll ();
The collapseAll method collapses all tree nodes.
Use the TreeList.expandAll method to expand all nodes.
The example of use is given in the TreeList.sort method description.
See also: