Skip to main content

DxTreeView.ClearSelection() Method

Clears node selection.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

Declaration

public void ClearSelection()

Remarks

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

The following code snippet implements the Clear selection button.

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

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

@code  {
    DxTreeView SampleTreeView;
    ...
See Also