User Guide
318 DataProvider API
Method summary for the DataProvider API
The following table lists the methods of the DataProvider API.
Property summary for the DataProvider API
The following table lists the properties of the DataProvider API.
Event summary for the DataProvider API
The following table lists the events of the DataProvider API.
Method Description
DataProvider.addItem() Adds an item at the end of the data provider.
DataProvider.addItemAt() Adds an item to the data provider at the specified position.
DataProvider.editField() Changes one field of the data provider.
DataProvider.getEditingData() Gets the data for editing from a data provider.
DataProvider.getItemAt() Gets a reference to the item at a specified position.
DataProvider.getItemID() Returns the unique ID of the item.
DataProvider.removeAll() Removes all items from a data provider.
DataProvider.removeItemAt() Removes an item from a data provider at a specified
position.
DataProvider.replaceItemAt() Replaces the item at a specified position with another item.
DataProvider.sortItems() Sorts the items in the data provider according to a compare
function or sort options.
DataProvider.sortItemsBy() Sorts the items in the data provider alphabetically or
numerically, in the specified order, using the specified field
name.
Property Description
DataProvider.length The number of items in a data provider.
Event Description
DataProvider.modelChanged Broadcast when the data provider is changed.