# TreeView Nodes

Learn about Nodes of Wijmo's TreeView component in this documentation topic

## Content


In most cases, you can work with a __TreeView__ using only its data-binding and selection properties, and the original data items bound to the tree.

## TreeNode

There are a few scenarios where you may need access to properties of the __TreeNode__ objects that make up the actual tree.

You can get the TreeNode that corresponds to a given data item by calling the TreeView's __getNode__ method, or use the nodes property to get the collection of root nodes on the TreeView.

Once you have a node, you can use its properties and methods to inspect or modify the tree. These properties and methods include:

* __dataItem__: Gets the item in the data source that is bound to this node.
* __element__: Gets the HTML element that represents this node.
* __ensureVisible__: Expands parent nodes and scrolls the TreeView as needed to ensure the node is currently visible.
* __select__: Selects the node and ensures it is visible.
* __parentNode__: Gets a reference to the node's parent node.
* __index__: Gets the index of this node in the node collection that contains it.
* __level__: Gets the node's level in the outline structure. Top level nodes have level zero.
* __nodes__: Gets an array containing the node's child nodes.
* __previous__, __next__, __previousSibling__, __nextSibling__: Get references to adjacent nodes on the tree, optionally excluding collapsed or non-sibling nodes.
* __isChecked__, __isCollapsed__, __isDisabled__: Get or set values that change the state of the node.