Column header fixed, but scrollable data in jqgrid

Can we freeze headers in jqgrid ?? that is, when the number of rows exceeds the page size, and we need to scroll the grid to view the data. I want the headers to be fixed when scrolling, so that the user knows the column name of the corresponding column. He figured out a lot, but could not find a suitable solution for jqgrid.

+4
source share
1 answer

Add instructions below

$('#' + yourGridName).closest(".ui-jqgrid-bdiv").css({"overflow-y" : "scroll"}); 

after building the grid.

+1
source

All Articles