Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fixed width of jqgrid column?

Tags:

jqgrid

Is there a way to set a fixed width (max and min) of a jqgrid column?

I've set the width property in the colmodel, but if I resize the grid the columns are adjusting.

like image 268
ffffff01 Avatar asked Feb 24 '12 13:02

ffffff01


People also ask

How is jqGrid width dynamically set?

You can set the new width of the column using two methods – setColProp and setGridWidth. This solution works, except that I needed to use "widthOrg" instead of "width" in the call to 'setColProp'.

What is jqGrid?

jqGrid is an Ajax-enabled JavaScript control that provides solutions for representing and manipulating tabular data on the web.


1 Answers

One can't define max and min width of the column, but one can make it have a fixed width which will be not changed. You can use the fixed option in the colModel.

fixed: true

property of the column (see the documentation).

like image 146
Oleg Avatar answered Sep 19 '22 18:09

Oleg