DxTreeView.ClearSelection() Method

Clears node selection.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v21.1.dll

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