1. #61
    Sencha User
    Join Date
    May 2007
    Posts
    32
    Vote Rating
    0
    Diddy433 is on a distinguished road

      0  

    Default Hiding column headers

    Hiding column headers


    I am using the explorerView and was just wondering if anyone has tried to hide and show the headers depending on what view it is in. For example, I am trying to hide the column headers when in the icon views but show the headers when in the details view. Anyone have any suggestions?

  2. #62
    Sencha User
    Join Date
    Jul 2008
    Posts
    9
    Vote Rating
    0
    elfantasy is on a distinguished road

      0  

    Default Using ExplorerView 3.0 Version Compatible With Ext 2.2

    Using ExplorerView 3.0 Version Compatible With Ext 2.2


    go here to download the 3.0 Version
    http://extjs.com/forum/showthread.php?p=346841

    change the code below taged.

    Code:
    updateAllColumnWidths : function(){
            ...
                // compatible with Ext 2.2
    	    //this.innerHd.firstChild.style.width = this.getOffsetWidth();
    	    this.innerHd.firstChild.style.width = (this.cm.getTotalWidth() + this.scrollOffset) + 'px';
            ...
    },
    updateColumnWidth : function(col, width){
            ...
                // compatible with Ext 2.2
    	    //this.innerHd.firstChild.style.width = this.getOffsetWidth();
    	    this.innerHd.firstChild.style.width = (this.cm.getTotalWidth() + this.scrollOffset) + 'px';
            ...
    },
        
    updateColumnHidden : function(col, hidden){
        	...
                // compatible with Ext 2.2
    	    //this.innerHd.firstChild.style.width = this.getOffsetWidth();
    	    this.innerHd.firstChild.style.width = (this.cm.getTotalWidth() + this.scrollOffset) + 'px';
            ...
    }
    hope this code help some one like me (using Ext 2.2)

  3. #63
    Ext JS Premium Member
    Join Date
    Feb 2008
    Location
    SRC solution, Toulouse, FR
    Posts
    18
    Vote Rating
    2
    jfa is on a distinguished road

      0  

    Default


    Quote Originally Posted by Diddy433 View Post
    I am using the explorerView and was just wondering if anyone has tried to hide and show the headers depending on what view it is in. For example, I am trying to hide the column headers when in the icon views but show the headers when in the details view. Anyone have any suggestions?
    in example, add in "changeView" function:
    Code:
    showHeaders = ...
    grid.getView().mainHd.setDisplayed(showHeaders)

  4. #64
    Sencha User mihaip007's Avatar
    Join Date
    Feb 2008
    Location
    Pretoria, South Africa
    Posts
    190
    Vote Rating
    0
    mihaip007 is on a distinguished road

      0  

    Default


    Hi...!

    I just wanted to ask if possible to have this kind of panel included as part of the extjs itself? I mean I am using it extensively and I am afraid that with each version update this extension breaks here and there...!

    Thanks
    Mihai

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi