Expanding and Collapsing Nodes
TreeView allows end-users to hide/show a node children. End-users can expand or collapse nodes by double-clicking them. It is also possible to expand/collapse nodes by clicking expand buttons. The visibility of these buttons can be controlled by using the TreeViewSettings.ShowExpandButtons property.
TreeView provides the server and client API, which expand and collapse nodes in code. You can perform the following actions with a node.
To impact a particular node: | Client Members | Server Members |
---|---|---|
To expand/collapse a particular node | ASPx |
Tree |
To determine the node’s expansion state | ASPx |
Tree |
To expand Tree |
ASPx |
To impact all nodes: | Client Members | Server Members |
---|---|---|
To expand all nodes | ASPx |
ASPx |
To collapse all nodes | ASPx |
ASPx |
To expand all nodes to the defined depth | ASPx |
To respond to expanding/collapsing nodes: | Client Events | Server Events |
---|---|---|
Before action | ASPx |
ASPx |
After action | ASPx |
ASPx |