JqG​​rid如何更改编辑表单的宽度? [英] JqGrid How to change width of edit form?

查看:77
本文介绍了JqG​​rid如何更改编辑表单的宽度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不明白如何在JqGrid中更改编辑表单的宽度.我找到了宽度"选项,但我不知道如何使用(没有示例).

I don't understand how to change width of edit form in JqGrid. I found option 'width' but I don't know how to use it (there isn't example).

推荐答案

您可能知道方法

You probably know the method navGrid. It has parameters in the form

$("#list").jqGrid('navGrid','#pager',{parameters},
                  prmEdit, prmAdd, prmDel, prmSearch, prmView);

其中参数prmEdit可以包含 editGridRow的任何选项方法,包括您选择的 width 选项需要.因此,例如,如果您需要使用宽度为500px而不是默认的300px的编辑表单,则可以使用

where the parameter prmEdit can contain any options of editGridRow method inclusive the width option which you need. So if you need for example to have edit form with 500px width instead of default 300px you can use

$("#list").jqGrid('navGrid','#pager',{},{width:500});

为简化实现,我从另一个答案中修改了一个示例,以使编辑对话框具有200px:实时显示它

To simplify you the implementation I modified an example from my another answer so that the edit dialog has 200px: see it live here.

这篇关于JqG​​rid如何更改编辑表单的宽度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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