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.ClearCheck() Method

In This Article

Unchecks all nodes.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
public void ClearCheck()

#Remarks

You can check all TreeView nodes as follows:

Call the ClearCheck() method to uncheck all nodes.

Note

The following actions change the check state of all nodes, even those that do not meet the applied filter criteria:

Razor
<DxTreeView @ref="MyTreeView" 
            Data="@Data"
            CheckMode="TreeViewCheckMode.Recursive">
    <DataMappings>
        <DxTreeViewDataMapping Text="Name"
                               Key="Id"
                               ParentKey="CategoryId" />
    </DataMappings>
</DxTreeView>

<DxButton Text="Uncheck All" Click="Click" />

@code {
    DxTreeView MyTreeView;
    void Click() {
        MyTreeView.ClearCheck();
    }
}

See Also