搜索我找到了這類問題的解決方案。
這裏是相同的頁面,但是,用正確的佈局:
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內部存在一個屬性,爲編輯控件創建高度。這很簡單;)