7

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?

JayD3e
  • 2,147
  • 3
  • 21
  • 30

2 Answers2

5

According to the docs for Form Editing, you can use the following options:

  • 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
Justin Ethier
  • 131,333
  • 52
  • 229
  • 284
  • I guess the real problem is that I am creating my CRUD buttons through the pager, and I don't specifically call the editGridRow() function, any way to specify attributes in the #pager constructor. – JayD3e Aug 09 '10 at 20:13
1

This worked for me. JqGrid How to change width of edit form?

Community
  • 1
  • 1
Amala
  • 1,718
  • 1
  • 17
  • 29