Hi Tamil,
Thanks for contacting Syncfusion support.
According to your query we suspect that you want to get the edited data after the saving in Grid.
In endEdit event called after saving the record in Grid and also the event is occur for other than batch edit mode of ejGrid control.
In batch edit mode, after saving the record we have call for actionComplete event but in this event we remove the batch saved data. So, we suggest you to get the modified data in actionBegin event by using a batchChanges API of ejGrid control and you can use those modified data in the actionComplete event of ejGrid control.
Refer the below code example.
<script type="text/javascript">
var modifiedData;
$(function () {
$("#Grid").ejGrid({
// the datasource "window.gridData" is referred from jsondata.min.js
dataSource: Data,
allowPaging: true,
editSettings: { allowEditing: true, allowAdding: true, allowDeleting: true, editMode: "batch" },
columns: [
---
],
actionBegin: function(args){
if (args.requestType == "batchsave")
modifiedData = this.batchChanges;
},
actionComplete: function(args){
if (args.requestType == "batchsave")
modifiedData;
}
});
});
</script>
|
We have prepared a simple JsPlayground sample in the following link.
Refer the help documentation.
Regards,
Thavasianand S.