Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DxTreeView.ClearSelection() Method

In This Article

Clears node selection.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
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