DxTreeView Members
A TreeView component.Constructors
Name | Description |
---|---|
DxTreeView() | Initializes a new instance of the DxTreeView class. |
Properties
Name | Description |
---|---|
AllowSelectNodes | Specifies whether or not nodes can be selected. |
ChildrenExpression | Specifies an expression that returns a node’s children. |
CollapseButtonIconCssClass | Specify a CSS class for the collapse button’s icon. |
CssClass | Specifies the name of the component’s CSS class. Inherited from DxComponentBase. |
Data | Specifies a data source. |
Enabled | Specifies whether the DxTreeView is enabled. |
ExpandButtonIconCssClass | Specify a CSS class for the expand button’s icon. |
HasChildrenExpression | A lambda expression that specifies whether the data item has child items. |
IconCssClassExpression | Specifies an expression that returns the name of a CSS class applied to a node’s icon. |
Id | For internal use only. Inherited from DxComponentBase. |
LoadChildNodesOnDemand | Specifies whether TreeView child nodes are loaded on demand. |
NameExpression | Specifies an expression that returns a node’s name. |
NavigateUrlExpression | Specifies an expression that returns a node’s target URL. |
NodeExpandCollapseAction | Specifies user actions that expand or collapse a node. |
Nodes | Provides access to the component node collection. |
NodeTemplate | Specifies the common template used to display all nodes. |
NodeTextTemplate | Specifies the common template to display all nodes’ text. |
ShowExpandButtons | Specifies whether expand buttons are visible. |
TextExpression | Specifies an expression that returns a node’s text. |
Methods
Name | Description |
---|---|
ClearSelection() | Clears node selection. |
CollapseAll() | Collapses all nodes in the DxTreeView. |
Equals(Object, Object) static | Determines whether the specified object instances are considered equal. Inherited from Object. |
Equals(Object) | Determines whether the specified object is equal to the current object. Inherited from Object. |
ExpandAll() | Expands all nodes in the DxTreeView. |
ExpandToNode(Func<ITreeViewNodeInfo, Boolean>) | Expands the nodes down to the specified node. |
GetHashCode() | Serves as the default hash function. Inherited from Object. |
GetNodeExpanded(Func<ITreeViewNodeInfo, Boolean>) | Returns whether the specified node is expanded. |
GetNodeInfo(Func<ITreeViewNodeInfo, Boolean>) | Returns information about the specified node. |
GetNodesInfo(Func<ITreeViewNodeInfo, Boolean>) | Returns information about the specified nodes. |
GetSelectedNodeInfo() | Returns information about the selected node. |
GetType() | Gets the Type of the current instance. Inherited from Object. |
MemberwiseClone() protected | Creates a shallow copy of the current Object. Inherited from Object. |
ReferenceEquals(Object, Object) static | Determines whether the specified Object instances are the same instance. Inherited from Object. |
SelectNode(Func<ITreeViewNodeInfo, Boolean>) | Selects the specified node. |
SetNodeExpanded(Func<ITreeViewNodeInfo, Boolean>, Boolean) | Expands or collapses the specified node. |
ToString() | Returns a string that represents the current object. Inherited from Object. |
Events
Name | Description |
---|---|
AfterCollapse | Fires after a node has been collapsed. |
AfterExpand | Fires after a node has been expanded. |
BeforeCollapse | Fires when a node is about to be collapsed and allows you to cancel the action. |
BeforeExpand | Fires when a node is about to be expanded and allows you to cancel the action. |
SelectionChanged | Fires after node selection has been changed. |
See Also