DxTreeViewNode.AllowCheck Property
Specifies whether the TreeView node can be checked.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v23.2.dll
NuGet Package: DevExpress.Blazor
Declaration
[DefaultValue(true)]
[Parameter]
public bool AllowCheck { get; set; }
Property Value
Type | Default | Description |
---|---|---|
Boolean | true |
|
Remarks
Set the CheckMode property to Multiple
or Recursive
to display checkboxes in nodes. The CheckedChanged event is raised when a user changes a node’s check state.
Set the AllowCheck
property to false
to disable checking of a specific node. The component does not show a checkbox for this node.
<DxTreeView CheckMode="TreeViewCheckMode.Multiple">
<Nodes>
<DxTreeViewNode Text="Overview" />
<DxTreeViewNode Text="Data Editors">
<Nodes>
<DxTreeViewNode Text="Combobox" />
<DxTreeViewNode Text="Spin Edit" AllowCheck="false" />
</Nodes>
</DxTreeViewNode>
<DxTreeViewNode Text="Form Layout" AllowCheck="false" />
<DxTreeViewNode Text="TreeView" />
</Nodes>
</DxTreeView>
See Also