|
// Grid’s actionBegin event handler
function actionBegin(args) {
if (args.requestType === 'save') {
// The default save action will be cancelled. Here you can perform your own update action with the modified data
args.cancel = true;
}
} |
|
document.addEventListener('click', function (args) {
var grid = document.getElementById('Grid').ej2_instances[0];
// Check if any row is in edit mode
if (grid.isEdit) {
// Saves the edited record
grid.endEdit();
}
}); |
Thanks.
Can we get the grid (all cells editable ) on page load?
|
// Grid’s load event handler
function onLoad(){
var gridData = this.dataSource;
} |
https://plnkr.co/edit/XbGLPZmD7pWnhd9O20iY?p=preview&preview
I need cell editing like ag-grid. Is it possible to get all cells of grid in editable mode? like in above link we can start editing and stop editing all cells