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
(With solution) Pager option breaks grid v 4.0
06/06/2011
12:26
Avatar
jogjayr
New Member
Members
Forum Posts: 1
Member Since:
06/06/2011
sp_UserOfflineSmall Offline

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 Cool. 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

15/05/2012
17:13
Avatar
mishkiss
New Member
Members
Forum Posts: 1
Member Since:
15/05/2012
sp_UserOfflineSmall Offline

The correct solution would be to include the language file - like jqgrid/js/i18n/grid.locale-en.js

11/06/2014
21:03
Avatar
dmittner
Member
Members
Forum Posts: 4
Member Since:
18/05/2014
sp_UserOfflineSmall Offline

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.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
44 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