How to check if a column has hideable option or not? [closed]
How do we check if a column has hideable option or not in column menu header in grid panel?
The menu is built from the column config, thus:
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
}
精彩评论