【发布时间】:2011-11-15 16:47:03
【问题描述】:
我有一个带有表单编辑选项的 JqGrid。 当我单击添加或编辑时,会出现对话框,但宽度占据了我的所有屏幕。我想要的是设置一个特定的宽度。我尝试使用 width 属性,但没有成功。
$('#jqgCompLine').jqGrid('navGrid', '#jqgpCompLine',
{ add: true, del: true, edit: true, search: false },
{ width: '100px', url: '@Url.Action("Update")', closeOnEscape: true,
beforeShowForm: function (form) {
$('#tr_TrC', form).attr('disabled', true);
$('#tr_All', form).attr('disabled', true);
$('#tr_Pe', form).attr('disabled', true);
},
beforeInitData: function () {
$("#jqgCompLine").setColProp('Cur', { formoptions: { label: 'Currency'} });
$("#jqgCompLine").setColProp('FCur', { formoptions: { label: 'Converted Currency'} });
}
},
我错过了什么吗?
提前感谢您的回答!
【问题讨论】:
标签: jqgrid