Forum
12:03
19/05/2011
Not sure if anyone else has encountered this but having recently switched to jqGrid 4.0.0 I have encountered an issue with the successfunc in the saverow function.
Ever since the upgrade my successfunc was no longer getting called, and my task was not completing.
Having debugged through the jquery.jqGrid.src.js file I have discovered this line:
8295: if( $.isFunction(o.succesfunc)) { ret = o.succesfunc.call($t, res);}
It is checking if o.succesfunc is a function and if so, using it as the next step in the process. The only problem being that o.succesfunc does not exist so it will never be true. The o element contains o.successfunc (which in my case is a valid function.) Everything began to run fine once I changed the line to:
if( $.isFunction(o.successfunc)) { ret = o.successfunc.call($t, res);}
15:29
23/05/2011
I had the same problem, and solved it likewise.
There's also a bug in the editRow settings array. The name for the restoreAfterError entry in the settings array should be "restoreAfterError", not "restoreAfterErorr". As it is, the afterrestorefunc-function is never called, and the grid ends up in a bad state if I return false in the success function. By changing the name to "restoreAfterError", everything works just as nicely as it did in 3.8.2.
I hope these easy fixes can be included in the next version so I don't have to patch this myself in the future.
20:15
Moderators
30/10/2007
Hello,
The problem is fixed in GitHub:
https://github.com/tonytomov/jqGrid/commit/de9d22a39056f2abfe6aed2785ce4768f68c62c2
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Most Users Ever Online: 715
Currently Online:
28 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