BootstrapClientTreeViewNode.GetNode(index) Method

Returns the current node’s immediate child node specified by its index.


    index: number
): BootstrapClientTreeViewNode


Name Type Description
index number

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


Type Description

A BootstrapClientTreeViewNode object representing the node located at the specified index within the current node collection.


The Tree View’s client-side functionality enables you to access and manipulate nodes on the client side. Use the GetNode method to get the client-side node object at the specified index in the list of the current node’s immediate child nodes. The nodes of the immediate child collection are maintained by the node’s BootstrapTreeViewNode.Nodes collection. This method can be used together with the ASPxClientTreeView.GetNodeCount method, when iterating through the list of the immediate child nodes.

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

See Also