JqGrid,更改宽度表单编辑

JqGrid,更改宽度表单编辑,jqgrid,Jqgrid,我有一个带有表单编辑选项的JqGrid。 单击“添加”或“编辑”时,会出现对话框,但其宽度会占据整个屏幕。我想要的是设置一个特定的宽度。我尝试使用宽度属性,但它不起作用 $('#jqgCompLine').jqGrid('navGrid', '#jqgpCompLine', { add: true, del: true, edit: true, search: false }, { width: '100px', url: '@Ur

我有一个带有表单编辑选项的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'} });
                }
            },
我错过什么了吗


提前感谢您的回答

属性应该是一个数字。您应该将宽度:“100px”替换为宽度:100

属性应该是一个数字。你应该将宽度:“100px”替换为宽度:100

非常感谢Oleg,它太傻了,但我花了将近1小时的研究。非常感谢Oleg,它太傻了,但我花了将近1小时的研究。