Back to Devexpress

DxTreeView.ClearSelection() Method

blazor-devexpress-dot-blazor-dot-dxtreeview-4480766f.md

latest945 B
Original Source

DxTreeView.ClearSelection() Method

Clears node selection.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
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.

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

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

@code {
    DxTreeView SampleTreeView;
    ...

See Also

DxTreeView Class

DxTreeView Members

DevExpress.Blazor Namespace