Advanced User Interface Controls and Components
Loads data from local or remote data source into the TreeView.
Param | Type | Details |
---|---|---|
data | Array | An array of item objects from local or remote data source |
parent (optional) | Object | The item which will represent the parent of the newly added items from the data source |
fields (optional) | Object | An object that matches the names of data fields from specified data source to the ones in TreeView |
flat (optional) | Boolean | Determines whether the data source is a tree hierarchy or a flat list |
This method does not return a value.
You can use this method to load data on demand, updating the whole TreeView in the process or the content of specified item. If objects in your data source has different names, then specify the fields object to map the field names from your data source to the ones used by the TreeView. The dataFields property provides information on data fields in use by the TreeView.
Supported in: v1.0.