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
updateColumns issue
02/11/2011
22:28
Avatar
jmanpa
Member
Members
Forum Posts: 4
Member Since:
05/09/2010
sp_UserOfflineSmall Offline

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.

03/11/2011
09:44
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

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.

03/11/2011
14:59
Avatar
jmanpa
Member
Members
Forum Posts: 4
Member Since:
05/09/2010
sp_UserOfflineSmall Offline
03/11/2011
19:33
Avatar
jmanpa
Member
Members
Forum Posts: 4
Member Since:
05/09/2010
sp_UserOfflineSmall Offline

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"

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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