DevExtreme React - CustomStore Methods
byKey(key)
A Promise that is resolved after the data item is loaded. It is a native Promise or a jQuery.Promise when you use jQuery.
clearRawDataCache()
Deletes data from the cache. Takes effect only if the cacheRawData option is true.
insert(values)
A Promise that is resolved after the data item is added. It is a native Promise or a jQuery.Promise when you use jQuery.
- var store = new DevExpress.data.CustomStore({
- // CustomStore is configured here
- });
- store.insert({ id: 1, name: "John Doe" })
- .done(function (dataItem, key) {
- // Process the "key" and "dataItem" here
- })
- .fail(function (error) {
- // Handle the "error" here
- });
load()
A Promise that is resolved after data is loaded. It is a native Promise or a jQuery.Promise when you use jQuery.
load(options)
A Promise that is resolved after data is loaded. It is a native Promise or a jQuery.Promise when you use jQuery.
remove(key)
A Promise that is resolved after the data item is removed. It is a native Promise or a jQuery.Promise when you use jQuery.
totalCount(options)
Gets the total count of items the load() function returns.
A Promise that is resolved after the total item count is obtained. It is a native Promise or a jQuery.Promise when you use jQuery.
update(key, values)
A Promise that is resolved after the data item is updated. It is a native Promise or a jQuery.Promise when you use jQuery.
If you have technical questions, please create a support ticket in the DevExpress Support Center.