DataViews supports batch edit, which allows you to send a single request that consists of multiple actions.
When CRUD is applied, DataViews communicates with the server when you edit an item.
Sending a server request every time you edit an item is a waste of server bandwidth and performance. The more economic way is to send a request to the server once after a series of local edits.
To apply batch editing, set dataSource.batchEdit = true. Once batch edit mode is set, update and create item actions are only applied locally. To save changes, use dataView.saveBatchEdit(). After that, dataSource.batch(params) is used to allow you to send a request, such as CRUD. To cancel batch edit and remove cached edits, use dataView.cancelBatchEdit().
The params contain: [Array] actions, which is the cache of all locally applied actions of create, update, and delete.
Try using CRUD actions in the grid and then save or cancel the changes using the buttons above the grid.
This demo calls some API items from the internet, make sure your internet connection is working and runing this demo with HTTP or HTTPS protocol.