how do we check if a column has hideable option or not in column menu header in grid panel?
A:
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
}
Lloyd
2010-05-05 16:02:49
thank you so much
xrx215
2010-05-05 17:25:23
how can we know if a checknox for a column is checked or unchekd in column header menu becuase column.hideable is always true if it is made visible in the grid or not.
xrx215
2010-05-05 18:43:37
hideable says if you can hide it, hidden says if it's hidden or not which directly relates to what you want.
Lloyd
2010-05-06 14:05:47
i had problems in retaining the grid settings when page is refreshed. I had to change the settings apply state and worked fine.Thanks a lot.
xrx215
2010-05-06 14:39:02