Maximize productivity with
30% off* for a limited time
using BOOSTDEV30.
Includes 3- and 5-packs.
*Some exclusions may apply.New Product LaunchBoldDesk: Help desk ticketing software starts at $10 for 3 agents.
Try it for free.
App.component.html
<ejs-grid #grid [dataSource]='data' [selectionSettings]='selectionOptions'[editSettings]='editSettings'
height='273px'(cellSaved)='cellSaved($event)'>
------
</ejs-grid>
App.component.ts
export class AppComponent {
@ViewChild('grid', {static: false})
grid: GridComponent;
public editSettings: EditSettingsModel;
public data: Object[];
-------
public ngOnInit(): void {
this.data = hierarchyOrderdata;
this.editSettings = { allowEditing: true, allowAdding: true, allowDeleting: true, mode:'Batch' };
--------
}
// triggers each time when the cell is saved (Batch Edit only)
cellSaved(args){
console.log(this.grid.getBatchChanges())
}
}
|