EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
April 26, 2024, 02:27:46 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
edatagrid: get row changes in onBeforeSave
Pages: [
1
]
« previous
next »
Print
Author
Topic: edatagrid: get row changes in onBeforeSave (Read 5916 times)
gordis gmbh
Full Member
Posts: 103
edatagrid: get row changes in onBeforeSave
«
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
Re: edatagrid: get row changes in onBeforeSave
«
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...