views:

46

answers:

1

Hi,

I am using jqGrid with the autowidth option set to true.

Standing to the documentation:

When set to true, the grid width is recalculated automatically to the width of the parent element. This is done only initially when the grid is created. In order to resize the grid when the parent element changes width you should apply custom code and use a setGridWidth method for this purpose

This makes the grid to occupy all the width available in the parent element. Another effect of this property is that every column is shrinked to fit the width available.

This works very good. Anyway I have one page where I want that the columns will not shrink to fit the grid width but they should occupy the space that i set within the colModel for them.

How can I achieve this?