|
Title: How can I show a confirm message before saveing a edatagrid row Post by: Stefan B. on May 23, 2014, 06:32:53 AM How can I show a confirm message before saveing a edatagrid row and if the result of confirm is false cancel the data row saveing.
The following code is not working while the $.messager.alert() working asynchronous. Code: onBeforeSave: function(rowIndex) {Title: Re: How can I show a confirm message before saveing a edatagrid row Post by: stworthy on May 23, 2014, 07:30:14 AM Please try this:
Code: onBeforeSave:function(index,row){Title: Re: How can I show a confirm message before saveing a edatagrid row Post by: Stefan B. on May 27, 2014, 12:15:51 AM THX stworthy - that works.
But it would be good to have a default confirm message before saving data in EasyUi. Similarly, the destroy confirm message. Over a flag like "activateSaveConfirmMsg" the "save confim message" can be activated. Code: destroyMsg:{ |