jQGrid set column width

2019-05-24 08:37发布

I found the way how to set jQGrid width:

$('#Grid1').setGridWidth(705, true);

It is resizing all columns according with this width when i am passing true. That is fine but the question is: 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?

In source code of grid there is a function setColWidth = function () { } but i not sure how to call this one and how to pass width as a prarm there, it is not accepting any params by the way.

Need help.

标签: jquery jqgrid
1条回答
ら.Afraid
2楼-- · 2019-05-24 09:17

You can try using the fixed colModel option to keep the width of one of the columns constant.

查看更多
登录 后发表回答