Binding to Data Overview
The TreeView can be populated with node information taken from a data source. Primarily designed for site navigation, the TreeView supports binding to data sources containing hierarchical data. Any object that implements the IHierarchicalEnumerable or IHierarchicalDataSource interface (e.g. SiteMapDataSource, XmlDataSource, etc.), may be used as a data source for the TreeView.
The MVC TreeView ships with the following data binding methods:
The TreeView supports two methods of retrieving data from a specified data source. One involves manually setting specific data-related properties to a data source item attribute names. The other one exploits the TreeView's ability to retrieve data automatically, given that the data source item attributes are named after the property names of a TreeView object.
However you choose to proceed, the TreeView automatically creates the MVCxTreeViewNode objects and retrieves their property values from corresponding items.