在 jqgrid 中隐藏一个冻结的字段
Hiding a frozen field in jqgrid
任何人都可以帮我隐藏 jqgrid 4.5.2 版本中的冻结列。
我有一个带有 4 个冻结列的 jqgrid。我想隐藏其中的 2 个,并只显示网格上四个冻结列中的两个。
注意:: 我的网格底部有一个 show/hide 按钮到 select 这两列并隐藏在网格上。
提前致谢..
你使用的旧 jqGrid 4.5.2 甚至我开发的最新 4.13.2 版免费 jqGrid fork 都是不可能的。
我更新了 free jqGrid to support hiding/showing frozen columns and reordering the column (see the commit) 的代码。新选项 notSkipFrozen: true
可以用在 showCol
、hideCol
、showHideCol
和 columnChooser
中强制使用。
The demo 使用来自 GitHub 的最新免费 jqGrid 代码,它使用
$(this).jqGrid("columnChooser", { notSkipFrozen: true });
调用由 navButtonAdd
添加的 onClickButton
内部的 columnChooser
。您可以验证现在可以 hide/show 冻结列或移动它的位置。冻结列的新位置仍将位于网格的第一个冻结列内。无法将冻结列移动到非冻结列。
任何人都可以帮我隐藏 jqgrid 4.5.2 版本中的冻结列。
我有一个带有 4 个冻结列的 jqgrid。我想隐藏其中的 2 个,并只显示网格上四个冻结列中的两个。
注意:: 我的网格底部有一个 show/hide 按钮到 select 这两列并隐藏在网格上。
提前致谢..
你使用的旧 jqGrid 4.5.2 甚至我开发的最新 4.13.2 版免费 jqGrid fork 都是不可能的。
我更新了 free jqGrid to support hiding/showing frozen columns and reordering the column (see the commit) 的代码。新选项 notSkipFrozen: true
可以用在 showCol
、hideCol
、showHideCol
和 columnChooser
中强制使用。
The demo 使用来自 GitHub 的最新免费 jqGrid 代码,它使用
$(this).jqGrid("columnChooser", { notSkipFrozen: true });
调用由 navButtonAdd
添加的 onClickButton
内部的 columnChooser
。您可以验证现在可以 hide/show 冻结列或移动它的位置。冻结列的新位置仍将位于网格的第一个冻结列内。无法将冻结列移动到非冻结列。