Hello,
I have implemented the Delete button of the Toolbar and when I choose with a checkbox, for example, the fifth row and I press the button it deletes the first row not the fifth one. Here is the code:
editSettings: EditSettingsModel;
toolbar: ToolbarItems[] | Object;
@ViewChild('grid')
grid: GridComponent;
constructor(private time: Time) {
this.editSettings = { allowEditing: true, allowAdding: true, allowDeleting: true };
this.toolbar = [ 'Delete'];
}
<ejs-grid #grid [dataSource]='dataDelete' [editSettings]='editSettings' [toolbar]='toolbar' (actionComplete)="onActionComplete($event)">
<e-columns>
<e-column type='checkbox' width='70'></e-column>
<e-column ----------------------------------------></e-column>
<e-column ----------------------------------------></e-column>
</e-columns>
</ejs-grid>
Looking forward to hearing from you,
Ane Perez de Nanclares