Back to Devexpress

DxTreeView.CheckNodeByClick Property

blazor-devexpress-dot-blazor-dot-dxtreeview-a352eeaa.md

latest1.4 KB
Original Source

DxTreeView.CheckNodeByClick Property

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

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

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

Property Value

TypeDefaultDescription
Booleanfalse

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.

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

See Also

DxTreeView Class

DxTreeView Members

DevExpress.Blazor Namespace