DxTreeViewBase.ExpandAll() Method

Expands all nodes in the DxTreeView.

Namespace: DevExpress.Blazor.Base

Assembly: DevExpress.Blazor.dll


public void ExpandAll()


Use the ExpandAll and CollapseAll() methods to expand and collapse all nodes in the DxTreeView.

The code sample below demonstrates how to implement the Expand all and Collapse all buttons.

<button type="button" @onclick="@(() => SampleTreeView.ExpandAll())">Expand all</button>
<button type="button" @onclick="@(() => SampleTreeView.CollapseAll())">Collapse all</button>

<DxTreeView @ref="@SampleTreeView">

@code  {
    DxTreeView SampleTreeView;
See Also