jQGrid设置列宽
我找到了如何设置jQGrid宽度的方法:
$('#Grid1').setGridWidth(705, true);
当我传递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 () { }
但我不知道如何调用这个setColWidth = function () { }
以及如何将宽度作为prarm传递给它,顺便说一下它不接受任何参数。
需要帮忙。
您可以尝试使用fixed
colModel选项来保持其中一列的宽度不变。