Back to Devexpress

DxTreeView.ClearCheck() Method

blazor-devexpress-dot-blazor-dot-dxtreeview-7ae3066f.md

latest1.7 KB
Original Source

DxTreeView.ClearCheck() Method

Unchecks all nodes.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
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

DxTreeView Class

DxTreeView Members

DevExpress.Blazor Namespace