PDA

View Full Version : [SOLVED] change dynamicaly hideHeaders propertie of a grid



franck34
24 Mar 2010, 4:58 AM
Is there a way to toggle visibility of the header bar in a grid ?

i can see hideHeaders:true/false in config option in the doc, but no setHeaderVisible function or something like that ?

Any help is welcome

franck34
24 Mar 2010, 5:24 AM
I made that ...



Ext.override(Ext.grid.GridPanel,{
setHeadersVisible : function(visible){
var display='none';
if (visible) display='block';
this.view.innerHd.firstChild.parentNode.parentNode.style.display = display;
}
});