Core of all operations for data-collection based components.
add | adds an item to the store |
addMark | allows setting custom flag for a data item. |
attachEvent | attaches the handler to an inner event of the component |
blockEvent | temporarily blocks triggering of ALL events of the calling object |
callEvent | calls an inner event |
changeId | changes the id of a data item |
clearAll | removes all items from the component |
clearMark | removes mark from all items in store |
count | returns the number of currently visible items |
destructor | destroy datastore |
detachEvent | detaches a handler from an event (which was attached before by the attachEvent method) |
each | iterates through the collection of data items |
exists | checks whether an item with the specified ID exists |
filter | filters the component |
find | returns all rows that match the criterion, or only the first one |
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 |
getIndexRange | gets ids of items in the specified index range |
getItem | gets the object of the data item with the specified ID |
getLastId | returns the ID of the last item |
getMark | returns mark value by record id and mark name |
getNextId | returns the ID of an item that is after the specified item, either directly after or after a number of items (defined by the step) |
getPrevId | returns the ID of an item that is before the specified item, either directly before or before a number of items (defined by the step) |
getRange | gets ids of items in the specified range |
hasEvent | checks whether the component has the specified event handler |
id | gets the id of a data item |
importData | import data from a different datastore |
mapEvent | routes events from one object to another |
move | moves the specified item to a new position |
provideApi | assigns methods (and events) of DataStore to an object |
refresh | repaints the whole view or a certain item |
remove | removes the specified item/items from datastore |
removeMark | removes a flag set for the specified item |
scheme | sets object with default values for properties |
serialize | serializes data to an array of JSON objects |
setDriver | defines type of used data driver |
silent | cancels refreshing for operations, passed as the parameter |
sort | sorts datastore |
sync | allows syncing two copies of data (all or just a part of it) from one DataCollection to another |
unblockEvent | cancels events blocking that was enabled by the 'blockEvent' command |
unsync | breaks "sync" link |
updateItem | updates the data item with new properties |