Hybrid View

  1. #1
    Sencha User
    Join Date
    Mar 2010
    Posts
    83
    Vote Rating
    -1
    daiei27 is an unknown quantity at this point

      0  

    Question PagingToolbar not showing in inactive tab

    PagingToolbar not showing in inactive tab


    I understand this is due to the fact that the components of the panel are "hidden" at time of render so the width that is detected is 0.

    The standard workaround for displaying components in inactive tabs is lazy instantiation/rendering, however I'm not sure how to do this with just the toolbar. I read somewhere (Condor said it I think) that the GridPanel's bbar option doesn't take the 'xtype' config for lazy whatever.

    How do I do this then? (Assuming I don't redo my entire grid to be lazy instantiated/rendered. I was hoping to try that when I had more time down the road.)

  2. #2
    Sencha User
    Join Date
    Mar 2010
    Posts
    83
    Vote Rating
    -1
    daiei27 is an unknown quantity at this point

      0  

    Default


    Correction: I found a later post where Condor says xtype IS supported by bbar in Ext 3.0.

    If that's true, then why doesn't something like this render a toolbar when I switch to the tab?
    Code:
    bbar: {xtype: 'paging'}

  3. #3
    Sencha User
    Join Date
    Mar 2010
    Posts
    83
    Vote Rating
    -1
    daiei27 is an unknown quantity at this point

      0  

    Question Update: I'm still having a related problem if anyone can help...

    Update: I'm still having a related problem if anyone can help...


    The two solutions I've found appear to be:
    1. lazy instantiation/rendering: Since xtype-ing just the paging toolbar doesn't work, I'm considering xtype-ing the entire grid. Problem is it has plugins/items that aren't xtype-able. If I xtype my grid and paging toolbar, can I still use the new Ext...() syntax for plugins/items? What are the side-effects of doing it that way?
    2. alter rendering/layout: The following actually displays the paging toolbar correctly on initial load of the tab with the grid...
    Code:
        tabs = new Ext.TabPanel({
            ...
            defaults:{autoHeight: true},
            deferredRender: true,
            layoutOnTabChange: true,
            ...
        }); // end TabPanel
    Code:
        resultGrid = new xg.GridPanel({
            ...
            layout: 'fit',
            ...
        }); // end resultGrid
    However, whenever I expand a row, the 'layout:fit' causes vertical scrollbars to pop up rather than the tab panel expanding like before.

    I tried things like .doLayout() on the tab to re-layout it and all its children, but it has no effect. How can I resize the tab/grid?

    I would REALLY appreciate some help!

    Chris

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