Forum


09:18

06/02/2009

Hi, is colNames a required grid property? The documentation doesn't suggest that it is and I've seen posts where others indicate they are not using it, but when my grid loads I get a message indicating:
"Length of colNames <> colModel or 0!"
I have several hidden columns and originally only had lables (via colNames) for the ones that weren't hidden. I've since removed colNames all together and added a label property for each field/column in colModel that is visible, but I'm still getting the error when the grid loads.
Any help is appreciated.
Thanks
10:52

Moderators
30/10/2007

Hello,
If you have trouble you can omit the colNames array empty and use the new option in colModel - label - see more on what is new in 3.4 release
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.
Most Users Ever Online: 715
Currently Online:
54 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