ASPxClientTreeView.GetNodeByName(name) Method

Returns a node specified by its name.


GetNodeByName(name: string): ASPxClientTreeViewNode


Name Type Description
name string

A string value specifying the name of the node.


Type Description

An ASPxClientTreeViewNode object that represents the node with the specified name.


An ASPxTreeView control's client-side functionality allows an individual node to be accessed programmatically. The GetNodeByName method gets a client node object specified by its name. A node's name is defined by the Name property.

This method searches the specified node amongst all nodes contained by the ASPxTreeView control (throughout all nesting levels). Note that if an invalid name is passed via the parameter, this method returns null.

In order to access a particular ASPxTreeView node's child specified by its name, the ASPxTreeView node's ASPxClientTreeViewNode.GetNodeByName method can be used.


The code below selects a node with the specified Name property value ("MyDocuments").

var node = treeview.GetNodeByName('MyDocuments');
See Also