Advanced User Interface Controls and Components
Loads data from local or remote data source into TreeGrid.
Param | Type | Details |
---|---|---|
name | String | The value of name attribute of the TreeGrid directive |
data | Array | An array of row objects from local or remote data source |
parent (optional) | Object | The row which will represent the parent of the newly added rows from the data source |
fields (optional) | Object | An object that matches the names of data fields from specified data source to the ones in TreeGrid |
flat (optional) | Boolean | Determines whether the data source is a tree hierarchy or a flat list |
This method does not return a value.
This method is part of IntegralUITreeGridService.
You can use this method to load data on demand, updating the whole TreeGrid in the process or the content of some specified row.
Supported in: v1.0.
Learn how to bind an arbitrary data source to the Tree Grid for AngularJS. Use custom names in data binding between Tree Grid and local or remote data source.
An example on how to populate the AngularJS TreeGrid using a remote JSON file as a data source.