Syntax

Parameters

Remarks

If the ASPxTreeView.AllowSelectNode property is set to true, end-users are allowed to select nodes via mouse clicks. The ASPxTreeView also provides the ability to select nodes on the client side via code. You can use the SetSelectedNode method for this purpose. Note that only one node can be selected within an ASPxTreeView control at the same time.

To make none of the nodes selected within a ASPxTreeView control, pass null as the method's parameter.

Example

This example demonstrates how to find a node by its text on the client side.

In the example we use the GetNodeByText method to search for the required node. If a node has been found, the code iterates through parent nodes to expand them using the SetExpanded method. After that the found note is selected using the SetSelectedNode method. Note, that the ASPxTreeView's AllowSelectNode property is set to true to allow node selection.