by setting column frozen : true
in colModel and
calling
jquery(your_jqgridName).jqGrid('setFrozenColumns');
It won't work in this scenario.
Seems you have to put capital Q
in jquery:
jQuery(your_jqgridName).jqGrid('setFrozenColumns');
//^----here
Limitations
The following limitations tell you when frozen columns can not be set-up
- When TreeGrid is enabled
- When SubGrid is enabled
- When cellEdit is enabled
- When inline edit is used - the frozen columns can not be edit.
- When sortable columns are enabled - grid parameter sortable is set to true or is function
- When scroll is set to true or 1
- When Data grouping is enabled
- When footer row (footerrow paremeter) is enabled
From the answer in Here
Add this below the set frozen columns.
$grid[0].p._complete.call($grid[0]);
Where $grid is defined as var $grid = $('#list');.