开发者

Fixed column header but scrollable data in jqgrid

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜