Hi alessandro,
Thanks for contacting Syncfusion Forums.
QUERY: Need to save edited data when I click off the grid
From your query we understand that you need to save your edited row when you click outside your grid. This can be achieved by calling endEdit method in “mouseleave event” (during actionComplete event)when you move your mouse out of your grid. Please refer the below code snippet,
actionComplete: function(args) {
if (args.requestType == "beginedit"){
$("#" + this._id).on("mouseleave", function(e){ //mouseleave event
var gridObj = $("#Grid").data("ejGrid");
var ddl = $(".e-ddl-popup")
if ((e.relatedTarget == null) || (!ddl)) {
gridObj.endEdit(); // calling endEdit method for saving edited cell
}
});
}
}
|
Please refer the below sample for better understanding,
If you have further queries, please get back to us.
Regards,
Padmavathy Kamalanathan