Skip to main content
All docs
V24.2

DxTreeView.CheckNodeByClick Property

Specifies whether users can click nodes to check and uncheck them.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

Declaration

[DefaultValue(false)]
[Parameter]
public bool CheckNodeByClick { get; set; }

Property Value

Type Default Description
Boolean false

true to allow users to click nodes to check and uncheck them; otherwise, false.

Remarks

When you enable node checking, you can set the CheckNodeByClick property to true to check nodes by mouse clicks.

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

Check by click

See Also