End editing on click outside grid area

Hi,
Is it posible to finish editing (with saving current data) when user click outside grid area? 
Now it works only when I click in grid area (not red in example below).

http://jsplayground.syncfusion.com/svmoarsw

1 Reply

SA Saravanan Arunachalam Syncfusion Team January 2, 2018 09:58 AM UTC

Hi Kamil, 

Thanks for contacting Syncfusion’s support. 

We have analyzed your requirement and achieved it by using the jQuery click event for the document. In that click event handler, we have saved the edited record by using endEdit method of Grid control. Please refer to the below code example and online document link. 

$(document).bind('click', function(e){ 
          var obj = $("#Grid").ejGrid('instance'); 
          obj.endEdit(); 
        }) 

And also we have modified your provided sample that can be refer from the below link. 

Regards, 
Saravanan A. 


Loader.
Up arrow icon