ASPxTreeView.CollapseAll() Method
Collapses all nodes in the ASPxTreeView.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
Declaration
Remarks
The CollapseAll method collapses all nodes which are currently expanded. This method invokes the ASPxTreeView.ExpandedChanging event before collapsing and the ASPxTreeView.ExpandedChanged event after collapsing.
To collapse all nodes on the client, use the ASPxClientTreeView.CollapseAll method.
For more information, see the Expanding and Collapsing Nodes topic.
Example
The code below demonstrates how you can use the CollapseAll method.
ASPxTreeView1.CollapseAll();
See Also