Forum
11:16
01/09/2009
it would be great to be able to mark some of the columns of the colmodel as 'fixed size', so that even when changing the size of the whole grid, the width of such columns is not scaled.
As far as I can see right now only some "special" columns behave like this (e.g. the column containing checkboxes when multiselect is enabled) while when increasing the width the width of all the columns is increased proportionally.
The use case is that sometimes you have columns that should not grow, for instance a table with two columns:
- one containing an ID of 5 digits should never bec
- one containing a description
When setting the size of the table only the description column should grow.
03:03
Moderators
30/10/2007
Hello,
Just now I have added this feature. Now we have a new property in colmodel - fixed. If set to true it do what you want.
The code is in GitHub 3.6 branch
Enjoy.
Regards
Tony
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.
09:31
Moderators
30/10/2007
Hello lotjuh,
Thanks. Fixed in 3.6RC
Regards
Tony
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.
16:40
09/11/2009
I do this by just sticking "fixed:true" in the colmodel for this column, right? I have the colmodel below, but the rank column still allows resizing. Clues appreciated. I'm on 3.6:
colNames: ["id","Rank", "ID", "Name", "State", "Size/Hours", "To do", "Owner", "Failures" ],
colModel:[
{name:'id',index:'id', width:1,hidden:true,key:true},
{name:'rank',index:'rank', width:40, fixed:true},
{name:'itid',index:'itid'},
{name:'name',index:'name'},
{name:'state',index:'state'},
{name:'size',index:'size'},
{name:'remaining',index:'remaining'},
{name:'owner',index:'owner'},
{name:'failures',index:'failures'}
],
03:01
Moderators
30/10/2007
Hello,
Also as described this option is used when you try to resize the grid with setGridWidth, in order to do what you want you need another option - set resizable to false in colModel of that column
Regards
Tony
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:
78 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