Forum



22:28

05/09/2010

I'm trying to use jQgrid in a fluid way and so when the window is resized, I need to resize jQgrid. I'm using the following code:
jQuery("#list").setGridParam({colModel:setColModel()});
jQuery("#list").setGridWidth(winwidth);
jQuery("#list")[0].updateColumns();
The third line triggers an error:
jQuery("#list")[0].updateColumns is not a function
I have all modules of jQgrid downloaded (v 4.2) and cannot make it not generate the error. Doing a grep on the entire directory shows no existence of updateColumns function in the jqGrid source.
09:44

Moderators
30/10/2007

Hello,
From where you hear about updateColumns?
I think it is beter first to look into the documenation before to do anything.
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.
14:59

05/09/2010

From the wiki http://www.trirand.com/jqgridw.....ki:methods
19:33

05/09/2010

The current wiki clearly states that updateColumns is a method that is available and requires special calling procedure:
"this synchronizes the width of the headers with the data. Useful when used with table drag and drop. This method should be used this way - Example:
var mygrid=jQuery(”#grid_id”)[0];
mygrid.updateColumns();"
However in v3.8 changes and fixes documentation it states:
"Remove updateColumns function which is not needed in sortableRows"
Most Users Ever Online: 715
Currently Online:
60 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