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
small typing bug in the usage of addSubGridCell in addJSONData
17/04/2012
08:28
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

Hello Tony,

jqGrid 4.3.2 with subgrids display "undefined" text on the top of grid:

The reason is typing error in the line where

cs[cs.length] += $(ts).jqGrid("addSubGridCell",gi+ni,i+rcnt);

should be replaced to

cs[cs.length] = $(ts).jqGrid("addSubGridCell",gi+ni,i+rcnt);

("+=" should be replaced to "=").

The usage of Array.push is better by the way in the line.

Best regards
Oleg

17/04/2012
12:26
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello Oleg,

Thanks - fixed.

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.

20/04/2012
20:08
Avatar
seph
Member
Members
Forum Posts: 4
Member Since:
20/04/2012
sp_UserOfflineSmall Offline

Thanks Oleg... I've saved a lot of time over the past few months thanks to your contributions.

I just downloaded 4.3.2 and everything is working fine in Chrome, however I am still seeing this "undefined" text problem in Firefox (3.6) and IE (all).

My code has the change that you suggested. I haven't been able to fix it so I reverted back to an older version.

20/04/2012
20:26
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

You are welcome seph!

It would be helpful if you provide the demo (test case) which reproduces the problem. In the case on can quickly localize and fix the problem.

I used the demo from the answer to find the problem and preparing the fix which I suggested. How you can see the demo works after the fix in all browsers in which I tested it.

So if you would provide another demo which uses modified jquery.jqGrid.src.js and do has the "undefined" problem I would analyse it.

Best regards
Oleg

20/04/2012
22:12
Avatar
seph
Member
Members
Forum Posts: 4
Member Since:
20/04/2012
sp_UserOfflineSmall Offline

Thanks Oleg.  I was actually working from your SubGrid Detail Row example, which was very much appreciated...

http://www.ok-soft-gmbh.com/jq.....ubGrid.htm

I took a look at the example that you provided and did a file compare between your 4.3.2 src and mine and I discovered that I actually still had the code with the += operator.  When I checked initially I noticed the line...

cs[cs.length] = $(ts).jqGrid("addSubGridCell",gi+ni,j+rcnt);

... so I believed that version that I downloaded had been updated, however I still had the following line...

cs[cs.length] += $(ts).jqGrid("addSubGridCell",gi+ni,i+rcnt);

Thanks so much for helping to set me straight.

20/04/2012
23:56
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

The version publishes as jqGrid 4.3.2 stay unchanged. The bugs will be always fixed only in the code on the github. So you should either do the same modifications yourself in jquery.jqGrid.src.js (or get from the link) or use the code from github.

Best regards
Oleg 

21/04/2012
09:44
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Since I find this bug critical I just have updated the build - i.e I have put the fixed version for download.

Regards

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.

24/04/2012
20:25
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

Hello Tony!

I downlowded the current version of jqGrid from the download page and see a lot of changes, bug fixes and new features made after the first publishing of jqGrid 4.3.2. Would be it not better to change the version number from 4.3.2 to 4.3.3? It will simplify the troubleshoting.

One more strange thing one can see: the files src\\i18n\\grid.locale-en.js and src\\i18n\\grid.locale-de.js are new, but the files js\\i18n\\grid.locale-en.js and js\\i18n\\grid.locale-en.js are still old. Probebly it would be nice to place in the js\\i18n directory minimized version of the files from src\\i18n.

In any way it's fine that the last changes are now published.

Best regards
Oleg

12/09/2012
17:39
Avatar
surekha
New Member
Members
Forum Posts: 1
Member Since:
12/09/2012
sp_UserOfflineSmall Offline

I'm using jquery.jqGrid-4.4.1 & getting this error "uncaught exception: jqGrid – No such method: addSubGridCell"

this error is only in firfox its working fine on ie9, 8, 7

Can any please help me 

Forum Timezone: Europe/Sofia

Most Users Ever Online: 496

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