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_TopicIcon
l.p.colModel[x] is undefined with html data
24/12/2011
02:28
Avatar
Shift4SMS
Las Vegas, NV
Member
Members
Forum Posts: 15
Member Since:
03/12/2010
sp_UserOfflineSmall Offline

I using the latest jqGrid (4.2.0) and the latest ckeditor (3.6.2). Via various thread around I have the two working together on modal edit dialogs (hopefully that makes sense).

Everything works great until a data cell which hold html data (to be edited by ckeditor) contains a table tag. The may be an issue with other tags but so far I have only experienced a problem with tables (and I have used this to edit all sorts of documents). Once a cell contains a table, the following throws an exception: var va = $(this).getRowData(id);

The exception is "l.p.colModel[x] is undefined", and Firebug points to jquery.jqGrid.min.js line 136.

Other rows on the same grid edit without issue, provided there is no table tag with the cell. I may be able to provide sample code if needed, but it may be big.

24/12/2011
10:44
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

You should use really the latest version of jqGrid which are 4.3.1 now. Moreover you should use jquery.jqGrid.src.js instead of jquery.jqGrid.min.js if you post an error. You should also always write which web browser you used in your tests. The best would be if you post a small demo which can be used to reproduce the problem. Could you post additional information?

Best regards
Oleg 

18/04/2012
13:17
Avatar
umerkhalidbutt
New Member
Members
Forum Posts: 1
Member Since:
18/04/2012
sp_UserOfflineSmall Offline

@Shift4SMS

I was facing the same issue. After debugging the issue I figured out that its a Bug in JQGrid (i am using latest 4.3.1). Whenever you define a table in any column (using column formatter) and try to retrieve the value of that column later (given that you have also defined your unformatter functions properly) you will face this issue.

Its fix is as follows:

Open the source file jquery.jqGrid.src.js and replace the following line

$('td',ind).each( function(i) {

with this line

$('td[role="gridcell"]',ind).each( function(i) {

and you are Done ! 🙂


jquery.jqGrid.src.js
18/04/2012
16:20
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

This is correct. Thanks - fixed.

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.

18/04/2012
18:10
Avatar
Shift4SMS
Las Vegas, NV
Member
Members
Forum Posts: 15
Member Since:
03/12/2010
sp_UserOfflineSmall Offline

umerkhalidbutt said:

$('td[role="gridcell"]',ind).each( function(i) {


jquery.jqGrid.src.js

Very nice. Thank you. That saves me a lot of time trying to get a sample app that demonstrates the issue and it's much more precise than my try/except work around.

18/04/2012
18:31
Avatar
Shift4SMS
Las Vegas, NV
Member
Members
Forum Posts: 15
Member Since:
03/12/2010
sp_UserOfflineSmall Offline

BTW, tested and worked like a charm! Thanks again.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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