如何调整 jqGrid rows/columns 以填充 100% space?

how can I adjust jqGrid rows/columns to fill 100% of ths space?

我的 jqGrid 列没有填满所有网格 space。 我已经阅读了一些问题,找到了 this answer,但它对我不起作用。

页面加载时,网格如下所示:

如果有人能帮助我,我将不胜感激。

谢谢!

the old answer. If you would use height: "auto" or would use scrollOffset: 0 then the free space on the right side will be not visible. The default options used in free jqGrid (it's the fork which I develop) are changed a little(see readme and wiki) 中描述的旧表单中应该不存在该问题。这样就可以用更少的选项创建网格,并减少像您问题中的问题那样的问题。

右边大小的免费 space 存在通常是因为使用了 jqGrid 的默认选项。 free space 的宽度对应于 scrollOffset 选项的大小,它在 jqGrid 中具有 static 值。免费 jqGrid(参见 here)在内部方法 fixScrollOffsetAndhBoxPadding 内部动态设置它,它将在每次填充结束时在其他内部方法 finalReportStepsfinalReportVirtual 内部调用网格。所以通常不会有任何问题。