jQGrid设置列宽

Jop*_*per 2 jquery jqgrid

我找到了如何设置jQGrid宽度的方法:

$('#Grid1').setGridWidth(705, true);
Run Code Online (Sandbox Code Playgroud)

当我通过时,它会根据此宽度调整所有列的大小true.这没关系,但问题是: Is it possible to keep constant width at least one column of grid when i call setGridWidth() or is it possible to change width only one column of the grid?

在网格的源代码中有一个函数,setColWidth = function () { }但我不知道如何调用这个函数以及如何将宽度作为prarm传递到那里,顺便说一下它不接受任何参数.

需要帮忙.

Jus*_*ier 5

您可以尝试使用fixedcolModel选项来保持其中一列的宽度不变.