jqGrid垂直滚动条 [英] jqGrid vertical scrollbar

查看:113
本文介绍了jqGrid垂直滚动条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以有一个jqGrid插入垂直滚动条,而不是在从寻呼机请求新行时增加其高度?

Is it possible to have a jqGrid to insert a vertical scrollbar instead of increasing its height as new rows are requested from the pager?

我当前的代码如下:

$("#grid").jqGrid({
url:'/someUrl',

datatype:"json",
mtype:'GET',
shrinkToFit:true,
forceFit:true,
autowidth:true,
altRows:true,
cellEdit:true,
altclass:'altRowClass',
multiselect:true,
rowNum:15,
height:300,
rowList:[15, 50, 100, 1000],    
rowNum:15    

});

推荐答案

如果我正确理解了您的问题,则可以添加CSS

If I correct understand your question you can add CSS like

.ui-jqgrid .ui-jqgrid-bdiv { overflow-y: scroll }

强制在网格中显示垂直滚动条.

to force displaying of the vertical scrollbar in the grid.

这篇关于jqGrid垂直滚动条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆