ASPxClientTreeViewNode.GetNodeByName(name) Method

Returns the current node's child node specified by its name.

Declaration

GetNodeByName(name: string): ASPxClientTreeViewNode

Parameters

Name Type Description
name string

A string value specifying the name of the node.

Returns

Type Description
ASPxClientTreeViewNode

An ASPxClientTreeViewNode object that represents the current node's child with the specified name.

Remarks

An ASPxTreeView control's client-side functionality allows individual nodes to be accessed programmatically. The GetNodeByName method gets a specific client node which is a child node of the current node. The obtained child node is specified by its name, which is defined by the Name property.

This method searches the specified node amongst all child nodes of the current node (throughout all child levels). Note that if an invalid name is passed via the parameter, this method returns null.

In order to access a particular node specified by its name throughout all ASPxTreeView levels, the ASPxClientTreeView.GetNodeByName method can be used.

See Also