Results 1 to 2 of 2

Thread: [SOLVED] change dynamicaly hideHeaders propertie of a grid

  1. #1
    Ext User franck34's Avatar
    Join Date
    Dec 2007
    Location
    France, Montpellier
    Posts
    148

    Thumbs up [SOLVED] change dynamicaly hideHeaders propertie of a grid

    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
    Regards, Franck

    http://jabext.innovacode.com/ ExtJS Jabber Client
    http://innovacode.com/extjs/Ext.ux.IconAlive/ icon manager for desktop
    http://trac.innovacode.com/wiki/ExtJS work around extjs

  2. #2
    Ext User franck34's Avatar
    Join Date
    Dec 2007
    Location
    France, Montpellier
    Posts
    148

    Default

    I made that ...

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

    http://jabext.innovacode.com/ ExtJS Jabber Client
    http://innovacode.com/extjs/Ext.ux.IconAlive/ icon manager for desktop
    http://trac.innovacode.com/wiki/ExtJS work around extjs

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •