Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
151100 | Jan 30,2020 05:35 PM UTC | Jan 31,2020 01:42 PM UTC | Angular - EJ 2 | 3 |
![]() |
Tags: Grid |
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())
}
}
|
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.