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
headers and columns are messed up when colmodel is hidden: 'true' (jsfiddle included)
06/12/2014
14:40
Avatar
ahaha
New Member
Members
Forum Posts: 2
Member Since:
06/12/2014
sp_UserOfflineSmall Offline

http://jsfiddle.net/usqgrnau/1/

 

just uncomment the line with "hidden: 'true'" and columns data will be messed up (last column's data just disappears)

 

browsers: mac chrome latest, mac safari latest.

jqgrid 4.6.0 and from master branch

06/12/2014
18:56
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

Sorry, but where you get so bad code example!!!??? Please never fill the grid with respect of addRowData. The simplified code which do the same is http://jsfiddle.net/OlegKi/usqgrnau/3/. The problem is that the code of the example is still buggy. It uses

hidden: 'true'

 instead of

hidden: true

It's not the same values. So the demo is buggy and the only problem which I see is that jqGrid generate a little strange looking grid in the case of wrong input data. Nevertheless one can change the code of jqGrid a little to improve the look of results in case of usage wrong type of hidden property of colModel. One can improve the code of jqGrid by replacing the line 

if( ts.p.colModel[j].hidden ) {

to

if (ts.p.colModel[j].hidden === true) {

(like the line of formatCol do) and the line 

if(!ts.p.colModel[i].hidden) {

to 

if (!ts.p.colModel[i].hidden === true) {

Best regards
Oleg

    

07/12/2014
11:44
Avatar
ahaha
New Member
Members
Forum Posts: 2
Member Since:
06/12/2014
sp_UserOfflineSmall Offline

Thank You very much for your clarification and suggestion. Yes it was my bad.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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