【问题标题】:jQGrid set column widthjQGrid设置列宽
【发布时间】:2011-07-20 02:15:56
【问题描述】:

我找到了设置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 () { },但我不知道如何调用这个函数以及如何在那里传递宽度作为参数,顺便说一下,它不接受任何参数。

需要帮助。

【问题讨论】:

    标签: jquery jqgrid


    【解决方案1】:

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

    【讨论】:

    猜你喜欢
    • 2016-02-14
    • 2013-02-19
    • 1970-01-01
    • 1970-01-01
    • 2011-08-27
    • 1970-01-01
    • 2017-01-31
    • 1970-01-01
    • 2011-05-19
    相关资源
    最近更新 更多