javascript 你如何改变JQGrid的编辑对话框的大小?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3443219/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How do you change the size of JQGrid's Edit Dialog Box?
提问by JayD3e
In a JQGrid grid, when you select a row and press the edit button, a dialog box pops up to allow you to enter information in the fields of that row. How do you specify a default height, width, and location of the dialog box that pops up?
在 JQGrid 网格中,当您选择一行并按下编辑按钮时,会弹出一个对话框,允许您在该行的字段中输入信息。如何指定弹出的对话框的默认高度、宽度和位置?
采纳答案by Justin Ethier
According to the docs for Form Editing, you can use the following options:
根据Form Editing的文档,您可以使用以下选项:
top - the initial top position of modal dialog. The default value of 0 mean the top position from the upper left corner of the grid. When jqModal option is true (see below) and jqModal plugin is present any value different from 0 mean the top position from upper left corner of the window.
left - the initial left position of modal dialog. The default value of 0 mean the left position from the upper left corner of the grid. When jqModal option is true (see below) and jqModal plugin is present any value different from 0 mean the left position from upper left corner of the window.
width - the width of confirmation dialog
- height - the entry height of confirmation dialog
top - 模态对话框的初始顶部位置。默认值 0 表示距网格左上角的顶部位置。当 jqModal 选项为真(见下文)并且 jqModal 插件存在时,任何不同于 0 的值表示窗口左上角的顶部位置。
left - 模态对话框的初始左侧位置。默认值 0 表示距网格左上角的左侧位置。当 jqModal 选项为真(见下文)并且存在 jqModal 插件时,任何不为 0 的值都表示窗口左上角的左侧位置。
width - 确认对话框的宽度
- height - 确认对话框的入口高度
回答by Amala
This worked for me. JqGrid How to change width of edit form?
这对我有用。 JqGrid 如何更改编辑表单的宽度?

