2

by setting column frozen : true in colModel and calling

jquery(your_jqgridName).jqGrid('setFrozenColumns');

It won't work in this scenario.

Jai
  • 72,925
  • 12
  • 73
  • 99
Asmi
  • 591
  • 1
  • 5
  • 15

2 Answers2

0

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

  1. When TreeGrid is enabled
  2. When SubGrid is enabled
  3. When cellEdit is enabled
  4. When inline edit is used - the frozen columns can not be edit.
  5. When sortable columns are enabled - grid parameter sortable is set to true or is function
  6. When scroll is set to true or 1
  7. When Data grouping is enabled
  8. When footer row (footerrow paremeter) is enabled
Jai
  • 72,925
  • 12
  • 73
  • 99
0

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');.

Community
  • 1
  • 1
Helen Araya
  • 1,814
  • 2
  • 27
  • 51