Forum



21:32

10/08/2009

Hello Luc,
it seems to me that you can implement your requirements using aftersavefunc parameter of the editRow function:
var aftersavefunc = function (rowid,isModifiedBySetRowData) {
// do you custom saving action
};
$("list").jqGrid('editRow', id, true, null, null, 'clientArray',{},aftersavefunc);
Best regards
Oleg
22:03

20/11/2010

Hi Oleg,
I've seen aftersavefunc, but unfortunately it happens too late. I need an event that is capable of canceling the edit if save is not successful (I think onsuccessfunc allows you to return false, thus preventing and restoring edit, but it fires only when using ajax).
Anyway, thanks for input
Luc
22:17

10/08/2009

Hi Luc,
If you use 'clientArray' as the url almost nothing will happened during the saving. Only the corresponding local row will be modified in the jqGrid with respect of setRowData method. So you can do yourself any ajax requests and make any local modifications in the jqGrid additionally.
Best regards
Oleg
Most Users Ever Online: 715
Currently Online:
48 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66