RadTreeNode
Read-only Properties
Those properties can be set in the server-side code and then accessed at the client-side. All of them reflect the current client-side state of the treeview.
|
Property |
Description |
|
Text |
The label of the node. This is what people see (e.g. "Los Angeles"). |
|
Value |
A user-defined value, which can be used for programmatic control (e.g. "35"). |
|
Category |
A user-defined value, which can be used for programmatic control (e.g. "City"). |
| ID |
The ID of the node. |
|
Enabled |
True/False according to the "enabled" state of the node. |
|
Expanded |
True/False according to the "expanded" state of the node. |
|
Checked |
True/False according to the "checked" state of the node. |
|
Selected |
True/False according to the "selected" state of the node. |
|
Nodes |
An array of the immediate child-node instances of the given node (not ALL child nodes). |
|
Parent |
An instance of the parent-node, if any. Null if the given node is a root node. |
|
TreeView |
An instance to the parent RadTreeView. |
|
Attributes |
Gets the custom attributes from the Attributes collection of the TreeNode. |
Methods
|
Method |
Description |
|
Prev() |
An instance of the previous sibling of the given node. |
|
Next() |
An instance of the the next sibling of the given node. |
|
Expand() Collapse() Toggle() |
Expands/collapses or toggles the state of the node (only if it has child-nodes). |
| Highlight() |
Highlights the node. |
| Select() |
Highlights the node and executes action (postback, url redirection) if any. |
| UnSelect() |
Unselects the node. |
| Enable() |
Enables a node that has been disabled (changes will not be persisted after postback). |
| Disable() |
Disables the node by applying the "TreeNodeDisabled" Css Style to the node and making it unclickable (changes will not be persisted after postback). |
|
Check(), UnCheck() |
Checks/unchecks the given node (if the checkbox mode is enabled). |
| StartEdit() |
Switches the text of the node in edit mode. |
| EndEdit() |
Switches the text of the node in uneditable mode. |
| CheckElement() |
Returns the HTML element which corresponds to the checkbox of the node. |
| ScrollIntoView() |
Causes the node to scroll into view, aligning it at the bottom of the treeview area. |
| ImageElement() |
Gets an instance of the image element of a given node. |
| TextElement() |
Gets an instance of the text of a given node. |
RadTreeView
Read-only properties
|
Property |
Description |
|
Nodes |
An array of the root nodes. |
|
AllNodes |
An array of ALL nodes in the treeview (not only the root nodes). |
| ID |
The ID of the treeview. |
| SelectedNode |
Instance of the currently selected node. Null if none. |
Methods
|
Method |
Description |
|
FindNodeByText(text) |
Returns the first instance of a node with the specified Text. |
|
FindNodeByValue(value) |
Returns the first instance of a node with the specified Value. |
|
GetSelectedNodes() |
Returns an Array of all selected nodes (useful when MultipleSelect is on). |
| UnSelectAllNodes() |
Unselects all nodes. |
| UpdateState() |
Updates the state of all TreeNodes on the server-side. If the nodes have been selected/unselected, checked/unchecked, etc. |
See Also