Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
141417 | Dec 11,2018 04:18 AM UTC | Dec 13,2018 08:36 AM UTC | React - EJ 2 | 3 |
![]() |
Tags: Grid |
...
toolbarClick(args) {
if(args.item.id=="grid_CustomAdd"){
this.addRecord(); //for add operation
}
else if(args.item.id=="grid_CustomEdit"){
this.startEdit(); //for edit operation
}
else if(args.item.id=="grid_CustomDelete"){
this.deleteRecord(this.getSelectedRows()[0]); //for delete operation
}
else if(args.item.id=="grid_CustomUpdate"){
this.endEdit(); //for update operation
}
}
...
|
[index.js]
...
this.toolbarOptions = ['CustomAdd', 'CustomEdit', 'CustomDelete', 'CustomUpdate', 'Cancel'];
... |
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.