Back to Devexpress

Node

aspnet-8587-components-site-navigation-and-layout-tree-view-concepts-node.md

latest5.0 KB
Original Source

Node

  • Jul 29, 2021
  • 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.

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 elementContent MembersAppearance Members
Check boxASPxTreeView.AllowCheckNodes, TreeViewNode.AllowCheckTreeViewStyles.NodeCheckBox, TreeViewStyles.NodeCheckBoxFocused, TreeViewNode.CheckBoxStyle, TreeViewImages.CheckBoxChecked, TreeViewImages.CheckBoxGrayed, TreeViewImages.CheckBoxUnchecked
ImageImagePropertiesBase.UrlTreeViewNode.Image, TreeViewNode.ImageStyle, TreeViewImages.NodeImage
TextTreeViewNode.TextTreeViewNode.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:

StatesServer MembersClient MembersDescription
VisibleTreeViewNode.VisibleASPxClientTreeViewNode.GetVisible, ASPxClientTreeViewNode.SetVisibleGets or sets a value specifying the current node’s visibility.
EnabledTreeViewNode.EnabledASPxClientTreeViewNode.GetEnabled, ASPxClientTreeViewNode.SetEnabledGets or sets a value that indicates whether the node is enabled.
SelectedASPxTreeView.SelectedNodeASPxClientTreeView.GetSelectedNode, ASPxClientTreeView.SetSelectedNodeGets or sets the selected node in an ASPxTreeView control.
CheckedTreeViewNode.CheckedASPxClientTreeViewNode.GetChecked, ASPxClientTreeViewNode.SetCheckedGets or sets whether the node is checked.
CheckStateTreeViewNode.CheckStateASPxClientTreeViewNode.GetCheckStateGets a value that specifies the node check state.
ExpandedTreeViewNode.ExpandedASPxClientTreeViewNode.GetExpanded, ASPxClientTreeViewNode.SetExpandedGets or sets whether the node is expanded.

Member Table

Member Table: Node

Examples