|
import { Grid, Edit, Toolbar, Page, Filter, CellSaveArgs } from '../src/grid/index';
. . .
let grid: Grid = new Grid({
dataSource: data,
cellSave: save,
toolbar: ['add', 'delete', 'update', 'cancel'],
editSettings: { allowEditing: true, allowAdding: true, allowDeleting: true, mode: 'batch' },
columns: [
. . .
. . .
]
});
grid.appendTo('#Grid');
function save (args: CellSaveArgs) {
grid.editModule.batchSave();
} |