Use the following properties to bind the TreeView to hierarchical data:
Assigns a local array as done in this demo.
Assigns a DataSource object that allows you to perform data shaping operations and use a remote source.
Each object in the TreeView's hierarchical data structure should include the following fields:
You can respectively use the keyExpr, displayExpr, and itemsExpr properties to specify custom names for the above-mentioned fields. Node objects can also include developer-defined fields and properties from this help section: items.
In this demo, nodes use the expanded property, which specifies whether a node is collapsed or expanded. They also include the developer-defined