JQGrid 列宽总是自动宽度

JQGrid Column Width Always auto width

最近从 jqGrid 4.4.4 Retro 版本升级到 jqGrid 4.13。5.It 在旧版上运行良好。现在列宽被混淆了。

$("#gridViewEditable").jqGrid({
        datatype: "local",
        data: data,
        cmTemplate: { autoResizable: true ,resizable : false,shrinkToFit:false,autowidth:false},
        autoResizing: { compact: true },
        gridview:true,
        loadonce:true,
        autowidth:false,
        shrinkToFit:false,
        pager: '#gridViewEditablePager',
        rownumbers: true,
        pgbuttons :false,
        viewrecords : false,
        pgtext : "",
        pginput : false,
        ignoreCase: true,
        viewrecords: true,
        caption: "Services",
        editurl: 'clientArray',
        footerrow: true, .........

旧的 JqGrid

新的JQgrid

我想您没有包含 ui.jqgrid.min.css(或包含在错误的路径中)。有关详细信息,请参阅 here and here