Skip to main content

BootstrapClientTreeView.GetSelectedNode Method

Returns the selected node within the Tree View control on the client side.

Declaration

GetSelectedNode(): BootstrapClientTreeViewNode

Returns

Type Description
BootstrapClientTreeViewNode

A BootstrapClientTreeViewNode object that represents the selected node.

Remarks

If the ASPxTreeView.AllowSelectNode property is set to true, end-users are allowed to select nodes via mouse clicks. The selected node can be obtained on the client side by using the GetSelectedNode method. If there isn’t a selected node within a Tree View or selection is prohibited, the GetSelectedNode method returns null. In order to select a specific node on the client side, use the Tree View’s BootstrapClientTreeView.SetSelectedNode method.

See Also