基于行数调整jqGrid大小? [英] Resize jqGrid based on number of rows?

查看:96
本文介绍了基于行数调整jqGrid大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想让我的jqGrid收缩和扩展基于它的行数。让我们说它目前有10行,jqGrid的高度将缩小到10行(这样没有空行的空行被暴露)。



如果有太多

解决方案

这是构建的进入网格。您将 height 设置为100%。 如果您进入高级 - >调整大小,则此页面上有演示。 / p>

I want my jqGrid to shrink and expand based on the number of rows it has. Let say it currently has 10 rows, the height of the jqGrid will shrink to 10 rows (so that no gaping empty rows is exposed).

If however there are too many rows, the height of the grid will expand to a maximum 'height' value and a scroll bar will appear.

解决方案

That's built into the grid. You set height to 100%. There's a demo on this page if you go "Advanced -> Resizing.

这篇关于基于行数调整jqGrid大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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