2011-04-01 82 views
0

我在我的Web页面中执行jqGrid时遇到了一些问题。 在网格中,我有很多列(10+),并且当我想将所有这些列设置为编辑并显示编辑表单时,请不要显示所有列。 我想知道是否存在一种方法来设置编辑窗体,一个选项来设置垂直和水平滚动条。jqGrid问题 - 带滚动条的editgridrow

下面是图片的链接: https://picasaweb.google.com/100470218423753226450/Apps#5590653711397752274

非常感谢您的回复!

回答

0

搜索我找到了这类问题的解决方案。

这里是相同的页面,但是,用正确的布局:

https://picasaweb.google.com/100470218423753226450/Apps#5590737287949556610

这里是旧代码:

jQuery("#grid").navGrid("#pager", 
     { edit: false, add: false, del: false, refresh: false, search: false }, // Options 
     {height: 280, width: 650, jqModal: false, closeOnEscape: true }, // Edit options 
     {height: 280, width: 650, jqModal: false, closeOnEscape: true }, // Add options 
     {}, // Delete options 
     {}, // Search options 
     {} // View options 
    ); 

现在,这是纠正问题的代码:

jQuery("#grid").navGrid("#pager", 
     { edit: false, add: false, del: false, refresh: false, search: false }, // Options 
     {dataheight: 200, height: 290, width: 650, jqModal: false, closeOnEscape: true }, // Edit options 
     {dataheight: 200, height: 290, width: 650, jqModal: false, closeOnEscape: true }, // Add options 
     {}, // Delete options 
     {}, // Search options 
     {} // View options 
    ); 

在jqgrid内部存在一个属性,为编辑控件创建高度。这很简单;)