Forum
12:26
06/06/2011
So here is the issue I had:
When I set the "pager" option in my jqGrid function call, I got a Javascript error that said:
"Uncaught Type Error: Cannot read property 'integer' of undefined" on line 1525 of the un-minified js file.
So I went into the file. The offending piece of code was:
fmt = $.jgrid.formatter.integer || {};
It is true; $.jgrid.formatter doesn't exist. However, $.fn.fmatter does exist and has a function integer. So I tried replacing it with this line
fmt = $.fn.fmatter.integer || {};
and voila, it worked . I obviously don't understand what I did or why it worked. I merely worked on the assumption that there was some sort of confusion between the two similar seeming statements formatter and fmatter and tried to fix it, so I would still request Tony to take a look at this issue.
Thanks
Jayraj
21:03
18/05/2014
I'd just like to make the suggestion that jqGrid handles this situation more gracefully, throwing a console error or something when the language file is missing. I reworked my dynamic script loading and was running into this because I neglected to include the language file and I'd have been chasing my tail for a long time if not for this forum topic.
Most Users Ever Online: 715
Currently Online:
76 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