Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 SlickGrid,我想要做的是显示一个没有垂直滚动条的网格,但分页仍然有效。
当我使用 optionautoHeight:true时,垂直滚动条被移除,但分页被破坏。有什么建议么?
autoHeight:true
autoHeight:true并且paging不兼容。
paging
如果我正确理解您的问题,您想在给定页面上一次渲染 25 行,但是您的网格太小而无法在该页面上渲染 25 行,因此右侧会出现一个垂直滚动条,并且您想要摆脱它。
为此,您应该将网格 div 的 height 属性设置为允许您准确查看给定页面上显示的 25 行的值。例如:
<div id="myGrid" style="height:800px;"></div>