BootstrapClientTreeView.GetNodeByText(text) Method
Returns a 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 BootstrapClientTreeViewNode object that represents the node with the specified node’s text content. |
Remarks
A Tree View control’s client-side functionality allows an individual node to be accessed programmatically. The GetNodeByText method gets a client node object specified by its text content. A node’s text content is defined by the Text property.
This method searches the specified node amongst all nodes contained by the Tree View 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 node’s child specified by its text content, the node level’s BootstrapClientTreeViewNode.GetNodeByText method can be used.