Skip to main content

BootstrapClientTreeViewNode.GetNodeByText(text) Method

Returns the current node’s child node specified by its text.

Declaration

GetNodeByText(
    text: string
): BootstrapClientTreeViewNode

Parameters

Name Type Description
text string

A string value specifying the text content of the node.

Returns

Type Description
BootstrapClientTreeViewNode

A ASPxClientTreeViewNode object that represents the current node’s child with the specified node’s text content.

Remarks

A Tree View control’s client-side functionality allows individual nodes to be accessed programmatically. The GetNodeByText method gets a specific client node which is a child node of the current node. The obtained child node is specified by its text content which is defined by the Text 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 text content throughout all Tree View levels, the BootstrapClientTreeView.GetNodeByText method can be used.

See Also