ASPxClientTreeView Class
Represents a client-side equivalent of the ASPxTreeView object.
Declaration
declare class ASPxClientTreeView extends ASPxClientControl
Remarks
The ASPxClientTreeView object serves as a client-side equivalent of the ASPxTreeView control, and implements the functionality of a client ASPxTreeView object.
Using the methods exposed by the ASPxClientTreeView object:
- a particular node can be accessed by its index, name or text (ASPxClientTreeView.GetNode, ASPxClientTreeView.GetNodeByName, ASPxClientTreeView.GetNodeByText);
- the total number of nodes at the ASPxClientTreeView‘s zero level can be retrieved (ASPxClientTreeView.GetNodeCount);
- the root node can be accessed (ASPxClientTreeView.GetRootNode);
- all nodes can be collapsed or expanded (ASPxClientTreeView.CollapseAll, ASPxClientTreeView.ExpandAll);
- a selected node can be manipulated (ASPxClientTreeView.GetSelectedNode, ASPxClientTreeView.SetSelectedNode).
The client events available via the ASPxClientTreeView object allow you to respond to a node expansion state change (ASPxClientTreeView.ExpandedChanging, ASPxClientTreeView.ExpandedChanged), to a node checked state change (ASPxClientTreeView.CheckedChanged), and to clicks on nodes (ASPxClientTreeView.NodeClick).
Note
The client-side programmatic interface is available if the ASPxTreeView.EnableClientSideAPI property is set to true, or the ASPxTreeView.ClientInstanceName property is defined, or any client event is handled.