EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: gordis gmbh on December 19, 2014, 05:48:34 AM



Title: edatagrid: get row changes in onBeforeSave
Post by: gordis gmbh on December 19, 2014, 05:48:34 AM
Is it possible to get the changes made to the current row in edatagrid when the event onBeforeSave is fired? That will help to avoid save/update of a row when no changes are made. Thanking you for a small hint.


Title: Re: edatagrid: get row changes in onBeforeSave
Post by: jarry on December 19, 2014, 07:20:45 PM
Returning false in the 'onBeforeSave' event will abort the saving action.
Code:
$('#dg').edatagrid({
  onBeforeSave:function(index){
    // ...
    return false;
  }
});