We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

End Edit not working In batch Mode

Thread ID:

Created:

Updated:

Platform:

Replies:

132871 Sep 26,2017 07:09 AM Sep 27,2017 01:43 PM JavaScript 1
loading
Tags: ejGrid
tamil
Asked On September 26, 2017 07:09 AM

hi,
             The End Edit event is not working in Batch mode. so how to get my value while end edit  without using actionComplete() method.


thanks & regards.

Thavasianand Sankaranarayanan [Syncfusion]
Replied On September 27, 2017 01:43 PM

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. 


CONFIRMATION

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.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;