我们如何在网格面板的列菜单标题中检查列是否具有可隐藏选项?
答案 0 :(得分:0)
菜单是根据列配置构建的,因此:
var col_model = grid.getColumnModel();
for (var i = 0, len = col_model.config.length; i < len; i++) {
var column = col_model.config[i];
// Access column properties here, such as hidden
}