0
我有一个JqGrid窗体编辑选项。 当我点击添加或编辑时,会出现对话框,但宽度会占据我的所有屏幕。我想要的是设置一个特定的宽度。我试图使用宽度属性,但它不起作用。JqGrid,更改宽度窗体编辑
$('#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'} });
}
},
我错过了什么吗?
在此先感谢您的答案!
非常感谢奥列格,它是如此愚蠢,但它花了我近1小时的研究。 – LotuX
@LotuX:不客气! – Oleg