Skip to main content

BootstrapClientTreeView.GetNode(index) Method

Returns a node specified by its index within the Tree View’s node collection.

Declaration

GetNode(
    index: number
): BootstrapClientTreeViewNode

Parameters

Name Type Description
index number

An integer value specifying the zero-based index of the node to be retrieved.

Returns

Type Description
BootstrapClientTreeViewNode

A BootstrapClientTreeViewNode object, representing the node located at the specified index within the Tree View’s node collection.

Remarks

The Tree View’s client-side functionality enables you to access and manipulate nodes on the client. Use the GetNode method to get the client-side node object at the specified index within the Tree View’s node collection using array notation. This method can be used together with the ASPxClientTreeView.GetNodeCount method when iterating through the list of a node collection.

Note that the index parameter is zero-based and its upper available value is specified by the ASPxClientTreeView.GetNodeCount value, decremented by one. If you pass an invalid index via the parameter, the method returns null.

In order to access nodes further down Tree View, you can use the BootstrapClientTreeViewNode.GetNode property of a child node.

See Also