如何自定义 jqGrid ColumnChooser 上的列?
How to customize the columns on jqGrid ColumnChooser?
我的网格有一些列隐藏了 属性 的 True(在红色边框中)。
我正在寻找防止这些列显示在 columnChooser 对话框中的方法。
我们可以在上面的截图中看到。我不想在初始化网格时显示设置为 invisible
(hidden = true
) 的列(金额、税)。有什么办法吗?
注意插件是column chooser jqgrid
.
当您在 jqGrid 的 colModel
中使用 hidden:true
时,columnChooser 会将这些列放在 全部可见部分 中。
所以要绕过它,您需要在 colModel
和 hidden:true
中设置 hidedlg : true
。
您可以在 columnChooser
中要隐藏的列中定义 hidedlg: true
属性(示例中的 amount
和 tax
列)
我的网格有一些列隐藏了 属性 的 True(在红色边框中)。
我正在寻找防止这些列显示在 columnChooser 对话框中的方法。
我们可以在上面的截图中看到。我不想在初始化网格时显示设置为 invisible
(hidden = true
) 的列(金额、税)。有什么办法吗?
注意插件是column chooser jqgrid
.
当您在 jqGrid 的 colModel
中使用 hidden:true
时,columnChooser 会将这些列放在 全部可见部分 中。
所以要绕过它,您需要在 colModel
和 hidden:true
中设置 hidedlg : true
。
您可以在 columnChooser
中要隐藏的列中定义 hidedlg: true
属性(示例中的 amount
和 tax
列)