单击分页器后,jqGrid 列宽度似乎消失
使用 jqGrid 版本 3.6.5
当前寻呼机扩展选项:
{ add: false, del: false, edit: false, search: false,
refresh: false, position: "left" }
当前网格选项:
$("#tblID").jqGrid({
url: '...',
datatype: datatype,
datastr: GridJsonData,
mtype: 'GET',
colNames: arrColumnLabels,
colModel: gridColumns,
rowNum: 10,
rowList: [10, 20, 30],
pager: $('#pgrID'),
sortname: '',
viewrecords: true,
sortorder: "desc",
caption: "",
forceFit: true,
previewPaneMessageId: 0,
previewPaneProjectId: 0,
height: "100%",
固定宽度列在我使用寻呼机导航后显示与初始加载不同。我是否需要添加一个选项来确保 colModel 中的宽度保持不变?
我注意到 setGridWidth 是导致问题的方法。因此,我需要一个使用 setGridWidth 但仍然允许固定宽度的列保持固定(根据 colModel)的解决方案,而动态宽度列扩展/缩小以填充间隙。
Using jqGrid version 3.6.5
Current pager extended options:
{ add: false, del: false, edit: false, search: false,
refresh: false, position: "left" }
Current grid options:
$("#tblID").jqGrid({
url: '...',
datatype: datatype,
datastr: GridJsonData,
mtype: 'GET',
colNames: arrColumnLabels,
colModel: gridColumns,
rowNum: 10,
rowList: [10, 20, 30],
pager: $('#pgrID'),
sortname: '',
viewrecords: true,
sortorder: "desc",
caption: "",
forceFit: true,
previewPaneMessageId: 0,
previewPaneProjectId: 0,
height: "100%",
Fixed width columns appear different from initial load after I navigate with the pager. Is there an options I need to add to ensure that widths in colModel persists?
I notice the setGridWidth is the method causing the problem. So I need a solution which uses setGridWidth but still allow the columns with fixed widths to remain fixed (according to colModel), while the dynamic width columns expand/reduce to fill the gap.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我必须升级到 jqgrid 3.7.2 并利用“固定”属性。
...
I had to upgrade to jqgrid 3.7.2 and utilise the "fixed" property.
...