Forum


09:52

20/02/2009

Hello,
I have a big problem.
I want have after complet grid, an horizontal scroll bar.
In fact, grid's width equals for example 800px.
My grid has 10 columns. And I want that width column is fixed for example (100,100,....,100).
Is-it possible?
I think that's possible beacause when we resize width column this horizontal scroll bar appears.
I want develop this function with jqgrid 3.4 and 3.5.
Thank you for your help;
Regards,
Aurore
10:12

I think you just have to put the jqgrid property shrinkToFit: false. See the jqgrid documentation
shrinkToFit | boolean | This option describes the type of calculation of the initial width of each column against with the width of the grid. If the value is true and the value in width option is set then: Every column width is scaled according to the defined option width. Example: if we define two columns with a width of 80 and 120 pixels, but want the grid to have a 300 pixels - then the columns are recalculated as follow: 1- column = 300(new width)/200(sum of all width)*80(column width) = 120 and 2 column = 300/200*120 = 180. The grid width is 300px. If the value is false and the value in width option is set then: The width of the grid is the width set in option. The column width are not recalculated and have the values defined in colModel. | true |
Most Users Ever Online: 715
Currently Online:
158 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