Skip to main content
A newer version of this page is available. .

ASPxTreeList.CollapseAll() Method

Collapses all Node.

Namespace: DevExpress.Web.ASPxTreeList

Assembly: DevExpress.Web.ASPxTreeList.v19.2.dll

Declaration

public void CollapseAll()

Remarks

To collapse the specified node, set its TreeListNode.Expanded property to false. To collapse a node on the client, use the ASPxClientTreeList.CollapseNode method.

To stop the node from being collapsed, handle the ASPxTreeList.NodeCollapsing event. Once the node has been collapsed, the ASPxTreeList.NodeCollapsed event is raised.

For more information, see Expanding and Collapsing Nodes.

See Also