DxTreeView.CollapseAll() Method
Collapses all nodes in the DxTreeView.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.2.dll
NuGet Package: DevExpress.Blazor
Declaration
public void CollapseAll()
Remarks
Use the ExpandAll() and CollapseAll
methods to expand and collapse all nodes in the DxTreeView
.
The following code snippet implements 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">
...
</DxTreeView>
@code {
DxTreeView SampleTreeView;
...
See Also