Skip to main content

DxTreeView.ClearSelection() Method

Clears node selection.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v23.2.dll

NuGet Package: DevExpress.Blazor

Declaration

public void ClearSelection()

Remarks

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">
    ...
</DxTreeView>    

@code  {
    DxTreeView SampleTreeView;
    ...
See Also