DataLoader
Loads and processes data into a component..
Methods
add | adds an item to the store |
clearAll | removes all items from the component |
count | returns the number of currently visible items |
exists | checks whether an item with the specified id exists |
filter | filters the component |
getFirstId | returns the ID of the first item |
getIdByIndex | returns the id of the item with the specified index |
getIndexById | returns the index of the item with the specified id |
getItem | gets the object of the data item with the specified id |
getLastId | returns the id of the last item |
getNextId | returns the ID of an item which is positioned the specified step after the specified item |
getPrevId | returns the ID of an item which is positioned the specified step before the specified item |
load | loads data from an external data source. |
loadNext | sends a request to load the specified number of records to the end of the clientside dataset or to the specified position |
parse | loads data to the component from an inline data source |
refresh | repaints the whole view or a certain item |
remove | removes the specified item from datastore |
serialize | serializes data to a JSON object |
sort | sorts datastore |
sync | allows syncing two copies of data (all or just a part of it) from one DataCollection to another |
updateItem | sets properties of the data item |
Events
onAfterAdd | fires after adding item to datastore |
onAfterDelete | fires after item deleting |
onAfterLoad | fires after server side loading is complete |
onAfterSort | fires after sorting dataset |
onBeforeAdd | fires before adding item to datastore |
onBeforeDelete | fires before item deleting |
onBeforeLoad | occurs immediately before data loading has been started |
onBeforeSort | fires before sorting dataset |
onDataRequest | fires when data from the server is requested for linear data structures (List, DataTable, DataView etc.) to implement dynamic data loading |
onDataUpdate | fires when data item is in update process |
onLoadError | fires when an error occurs during data loading ( invalid server side response ) |
Properties
data | JavaScript array containing data for the component |
dataFeed | the URL that the component will use to reload data during binding |
datathrottle | sets the polling interval (the time period between the completion of a network request and the next request for data) |
datatype | the type of loaded data |
ready | event handler called just after the component has been completely initialized |
removeMissed | defines how to treat items in case of reloading |
save | defines URLs for data saving |
scheme | defines schemes for data processing |
url | the URL the component will use to load data after its initialization |
Back to top