• 2 minutes to read

Nodes correspond to items within the hierarchical data. Nodes are represented by TreeViewNode objects. A node can have its own child nodes collection, available via the TreeViewNode.Nodes property. These child nodes have their own children, etc.

The parent node for all nodes, displayed within the ASPxTreeView, is called the root node. This is a special node which isn't displayed. The collection of its child nodes can be accessed via the ASPxTreeView.Nodes property.

TreeViev - Node

The node content can include a check box, an image and a text. The table below lists the main properties which affect the node content:

Visual element Content Members Appearance Members
Check box ASPxTreeView.AllowCheckNodes, TreeViewNode.AllowCheck TreeViewStyles.NodeCheckBox, TreeViewStyles.NodeCheckBoxFocused, TreeViewNode.CheckBoxStyle, TreeViewImages.CheckBoxChecked, TreeViewImages.CheckBoxGrayed, TreeViewImages.CheckBoxUnchecked
Image ImagePropertiesBase.Url TreeViewNode.Image, TreeViewNode.ImageStyle, TreeViewImages.NodeImage
Text TreeViewNode.Text TreeViewNode.TextStyle, TreeViewNode.TextTemplate, ASPxTreeView.NodeTextTemplate

A node has a set of properties responsible for a node's state. The tables below list the main properties which specify the node's state:

States Server Members Client Members Description
Visible TreeViewNode.Visible ASPxClientTreeViewNode.GetVisible, ASPxClientTreeViewNode.SetVisible Gets or sets a value specifying the current node's visibility.
Enabled TreeViewNode.Enabled ASPxClientTreeViewNode.GetEnabled, ASPxClientTreeViewNode.SetEnabled Gets or sets a value that indicates whether the node is enabled.
Selected ASPxTreeView.SelectedNode ASPxClientTreeView.GetSelectedNode, ASPxClientTreeView.SetSelectedNode Gets or sets the selected node in an ASPxTreeView control.
Checked TreeViewNode.Checked ASPxClientTreeViewNode.GetChecked, ASPxClientTreeViewNode.SetChecked Gets or sets whether the node is checked.
CheckState TreeViewNode.CheckState ASPxClientTreeViewNode.GetCheckState Gets a value that specifies the node check state.
Expanded TreeViewNode.Expanded ASPxClientTreeViewNode.GetExpanded, ASPxClientTreeViewNode.SetExpanded Gets or sets whether the node is expanded.

Member Table

Member Table: Node