Can we freeze headers in jqgrid?? that is when number of rows exceeds the page size and we need to scroll grid to view data. I want headers to be 开发者_运维问答fixed while scrolling so that user knows the column name of the corresponding column. Googled a lot about it but couldn't find appropriate solution for jqgrid.
Add below statement
$('#' + yourGridName).closest(".ui-jqgrid-bdiv").css({"overflow-y" : "scroll"});
after the grid is built.
精彩评论