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.
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'.
jqGrid is an Ajax-enabled JavaScript control that provides solutions for representing and manipulating tabular data on the web.
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).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With