Skip to main content
Tab

TreeViewNode.CheckState Property

Gets a value that specifies the node check state.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(CheckState.Unchecked)]
public virtual CheckState CheckState { get; }

Property Value

Type Default Description
CheckState Unchecked

One of the CheckState enumeration values.

Available values:

Name Description
Checked

An element is in a checked state (TreeView_CheckState_Checked).

Unchecked

An element is in an unchecked state (TreeView_CheckState_Unchecked).

Indeterminate

An element is in a grayed state (TreeView_CheckState_Indeterminate).

Remarks

Use the CheckState property to obtain the node check state.

To allow end-users to check nodes, set the ASPxTreeView.AllowCheckNodes property to true. You can disable the check box for a particular node by setting its TreeViewNode.AllowCheck property to false.

To get the CheckState property value on the client side, use the ASPxClientTreeViewNode.GetCheckState method.

Note

The CheckState property synchronizes its value with the node’s TreeViewNode.Checked property.

For more information, see the Check Box Support topic.

See Also