Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_Related Related Topics sp_TopicIcon
successfunc or succesfunc??
19/05/2011
12:03
Avatar
jcoo02
Member
Members
Forum Posts: 3
Member Since:
19/05/2011
sp_UserOfflineSmall Offline

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);}







23/05/2011
15:29
Avatar
baltie
Norway
New Member
Members
Forum Posts: 1
Member Since:
23/05/2011
sp_UserOfflineSmall Offline

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. :)

23/05/2011
20:15
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
60 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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information