Skip to main content

ASPxTreeList.CollapseAll() Method

Collapses all Node.

Namespace: DevExpress.Web.ASPxTreeList

Assembly: DevExpress.Web.ASPxTreeList.v24.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