EasyUI Forum
April 26, 2024, 02:27:46 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: edatagrid: get row changes in onBeforeSave  (Read 5916 times)
gordis gmbh
Full Member
***
Posts: 103


View Profile Email
« 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.
Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 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;
  }
});
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!