Originally Posted by
Daniil
Hi,
Changing the hideable on the fly doesn't cause updating the menu.
I can suggest the following solution.
var grid = App.GridPanel1,
col = grid.columns[1];
col.hide();
col.hideable = false;
grid.headerCt.menu.destroy();
delete grid.headerCt.menu;
It causes the menu to be updated.
After updating from SVN, i noticed that it's not necessary to do the following anymore:
grid.headerCt.menu.destroy();
delete grid.headerCt.menu;
So, we just have to hide the column and set hideable property to false, as shown below:
var hideNameColumn = function () {
var grid = App.GridPanel1,
col = grid.columns[1];
col.hide();
col.hideable = false;
}