让 jqGrid 填充它的容器 [英] Make jqGrid fill its container

查看:23
本文介绍了让 jqGrid 填充它的容器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的一个项目中使用了 jQuery 布局插件和 jqGrid 插件,它们工作得很好,除了一个小问题......

I am using the jQuery layout plugin and the jqGrid plugin in one of my projects and they work great except for a little problem...

我希望 jqGrid 完全填满包含它的窗格(jQuery 布局窗格).调整窗格大小应调整 jqGrid 大小,关闭窗格应隐藏 jqGrid 等.

I want the jqGrid to fill up completely the pane (jQuery layout pane) that contains it. Resizing the pane should resize the jqGrid, closing the pane should hide the jqGrid, etc, etc.

jqGrid 和 jQuery Layout 都提供回调,但是当我使用它们时,页面布局会严重中断.

Both jqGrid and jQuery Layout provide callbacks but when I use them the page layout breaks horribly.

有没有人有将 jqGrid 与 jQuery Layout 混合使用的经验?

Has anyone any experience mixing jqGrid with jQuery Layout?

  1. http://www.secondpersonplural.ca/jqgriddocs/index.htm
  2. http://layout.jquery-dev.net/

推荐答案

我建议你通读 resize-jqgrid-when-browser-is-resized,其中讨论了调整网格大小的几种技术.

I recommend you read through resize-jqgrid-when-browser-is-resized, which discusses several techniques for resizing your grid.

这篇关于让 jqGrid 填充它的容器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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