我找到了如何设置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 () { }
,但我不确定如何调用这个函数以及如何在那里传递宽度作为参数,顺便说一下,它不接受任何参数。
需要帮助。
您可以尝试使用fixed
colModel选项来保持其中一列的宽度不变。