cancel(operationId)
You can access the operation identifier using the operationId field that extends the Promise object returned from the load() and reload() methods.
- var ds = new DevExpress.data.DataSource({
- // DataSource is configured here
- });
- var loadPromise = ds.load();
- loadPromise.done(function (result) {
- // ...
- });
- ds.cancel(loadPromise.operationId);
isLastPage()
Checks whether the count of items on the current page is less than the pageSize. Takes effect only with enabled paging.
load()
A Promise that is resolved after data is loaded. It is a native Promise or a jQuery.Promise when you use jQuery.
The Promise returned from this method is extended with the operationId field which you can use to cancel the invoked operation. See cancel(operationId) for details.
See Also
pageIndex(newIndex)
Sets the index of the page that should be loaded on the next load() method call.
Call the load() method to update the widget bound to the DataSource:
pageSize(value)
Sets the page size.
Call the load() method to update the widget bound to the DataSource:
paginate(value)
Sets the paginate option's value.
Call the load() method to update the widget bound to the DataSource:
reload()
Clears currently loaded DataSource items and calls the load() method.
A Promise that is resolved after loading is completed and rejected after loading failed. It is a native Promise or a jQuery.Promise when you use jQuery.
The Promise returned from this method is extended with the operationId field which you can use to cancel the invoked operation. See cancel(operationId) for details.
requireTotalCount(value)
Sets the requireTotalCount option's value.
Call the load() method to update the widget bound to the DataSource:
searchExpr()
Gets the searchExpr option's value.
The option's value; described in the Getters and Setters section.
searchExpr(expr)
Sets the searchExpr option's value.
A new value; described in the Getters and Setters section.
searchValue(value)
Sets the searchValue option's value.
Call the load() method to update the widget bound to the DataSource:
See Also
totalCount()
Gets the number of data items in the store after the last load() operation without paging. Takes effect only if requireTotalCount is true
If you have technical questions, please create a support ticket in the DevExpress Support Center.