The Grid supports CRUD operations. This CRUD operations can be configured in Grid using
editSettings. Also, it has different modes to manipulate the datasource.
The available modes are,
Normal
Dialog
Batch
In this demo, Batch mode is enabled for editing by defining
editSettings.mode
as batch. You can start editing by double clicking a cell and can change the cell value.
The edited cell will be highlighted while navigating to a new cell, so that you know which cells had been edited.
You can bulk save the edited data to the datasource by click on the toolbar's update button
or by externally invoking the
batchSave
method.
Injecting Module
Grid features are segregated into individual feature-wise modules. To use editing feature, we need to inject
Edit
module using the Grid.Inject(Edit) method.