A newer version of this page is available. Switch to the current version.

ASPxTreeView.ExpandAll() Method

Expands all nodes in the ASPxTreeView.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll


public void ExpandAll()


The ExpandAll method expands all nodes which are currently collapsed. This method invokes the ASPxTreeView.ExpandedChanging event before expanding and the ASPxTreeView.ExpandedChanged event after expanding.

To expand all nodes on the client, use the ASPxClientTreeView.ExpandAll method.

For more information, see the Expanding and Collapsing Nodes topic.


The code below demonstrates how to expand an ASPxTreeView, after the page is loaded.

    protected void Page_Load(object sender, EventArgs e) {
See Also