我找到了设置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?
在grid的源代码中有一个函数setColWidth = function () { },但我不确定如何调用这个函数,以及如何将width作为prarm传递,顺便说一下,它不接受任何参数。
需要帮助。
发布于 2011-07-20 10:19:21
您可以尝试使用fixed colModel选项来保持其中一列的宽度不变。
https://stackoverflow.com/questions/6756276
复制相似问题