Skip to main content

DxTreeView.ClearSelection() Method

Clears node selection.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v22.2.dll

NuGet Package: DevExpress.Blazor


public void ClearSelection()


Use the ClearSelection method to clear node selection in the DxTreeView component.

The code sample below demonstrates how to implement the Clear selection button.

<button type="button" @onclick="@(() => SampleTreeView.ClearSelection())">Clear selection</button>

<DxTreeView @ref="@SampleTreeView" AllowSelectNodes="true">

@code  {
    DxTreeView SampleTreeView;
See Also