开发者

Fixed column header but scrollable data in jqgrid

开发者 https://www.devze.com 2023-03-21 09:42 出处:网络
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 know

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号