具有自动高度的jqGrid;但具有最大高度&滚动条 [英] jqGrid with automatic height; but has a max height & scrollbars
问题描述
有没有办法让jqGrid自动将其高度调整为行数;但是当达到某个高度时,它的高度不能再增加,并且垂直滚动条会增加吗?
Is there any way to get jqGrid to adjust its height automatically to the number of rows; but when a certain height is reached that its height cannot increase anymore and that the vertical scrollbar apprears?
谢谢 D
推荐答案
我建议您在
The 更新:免费的jqGrid在4.10.0版中引入了新属性: UPDATED: Free jqGrid introduce in version 4.10.0 new property: 这篇关于具有自动高度的jqGrid;但具有最大高度&滚动条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!"max-height"
属性将为未被IE6使用,但最近的网络浏览器将使用它."max-height"
property will be not used by IE6, but more recent web browsers will use it.maxHeight
,其作用与上述完全相同.因此,人们可以只使用maxHeight: 300
而不是手动设置父div.ui-jqgrid-bdiv
的max-height
.maxHeight
which do exactly the same as above. Thus one can just use maxHeight: 300
instead of manual setting of max-height
of the parent div.ui-jqgrid-bdiv
.