1. #1
    Sencha User
    Join Date
    Mar 2011
    Location
    Fort Lauderdale, FL
    Posts
    13
    Vote Rating
    3
    FrankXP is on a distinguished road

      2  

    Default combobox hide pagingtoolbar when no necessary

    combobox hide pagingtoolbar when no necessary


    I needed to hide the pagingToolbar if there was only one page returned from the server. Instead of making an override I replaced the refresh function in the list config. Since it took me a while to figure it out I decided to share it back in case somebody else need it. Let me know if anyone finds a better approach to this.

    Code:
    listConfig{
    refresh: function () {
            var me = this,
                toolbar = me.pagingToolbar;
    
    
            Ext.view.View.prototype.refresh.call(me);
    
    
            if (me.rendered && toolbar && toolbar.rendered && !me.preserveScrollOnRefresh) {
                me.el.appendChild(toolbar.el);
                
                if (me.getStore().getTotalCount() <= me.pageSize) me.el.last().hide();
                else me.el.last().show();
            }
        }
    }

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,927
    Vote Rating
    443
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    Thanks for sharing ...

    Scott.

  3. #3
    Sencha User
    Join Date
    May 2011
    Location
    Toronto
    Posts
    3
    Vote Rating
    0
    kman is on a distinguished road

      0  

    Default ExtJS 2.x

    ExtJS 2.x


    Hi All,

    I know ExtJS 2.x is not supported, however, I am trying to implement the same feature where the paging toolbar hides in the combobox. Anyone implemented this feature before?

    Thanks.

Thread Participants: 2

Tags for this Thread

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