tags:

views:

23

answers:

1

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
thank you so much
xrx215
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
hideable says if you can hide it, hidden says if it's hidden or not which directly relates to what you want.
Lloyd
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