Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Sencha User
    Join Date
    Nov 2008
    Posts
    17
    Vote Rating
    0
    iteamsoftware is on a distinguished road

      0  

    Default tabs in tabpanel

    tabs in tabpanel


    Hi.
    I have an issue regarding the tabPanel and the child.
    I have a tabPanel with some tabs inside. Each tab has a grid on it.
    The firts tab it's displayed ok but the others are not.
    The load it's like this.
    I render the tabPanel.
    After that the user enter some criteri into a textfiled outside the tabPanel and after that I reload the stores from each grid from tabPanel to display the data.
    the data it's loading ok but the other panels except the firts one don't want do make the layout.
    I put also:
    deferredRender: false, forceLayout: true,

    {%jid%}tabsPanel = new Ext.TabPanel({
    resizeTabs: true,
    enableTabScroll: true,
    minTabWidth: 115,
    tabWidth:135,
    activeTab:0,
    autoDestroy: true,
    margins:'0 0 0 0',
    height: panelHeight - (Ext.isIE6 ? 105 : 107),
    bodyStyle: 'padding-top: 0px; padding-left: 0px; padding-right: 0px; padding-bottom: 0px;',
    deferredRender: false, forceLayout: true,
    plain: false,
    items:
    [
    { title: 'tab1',
    defaultType: 'textfield',
    deferredRender: false, forceLayout: true,
    items: [ THE GRID HERE ] },

    { title: 'tab2',
    defaultType: 'textfield',
    deferredRender: false, forceLayout: true,
    items: [ THE GRID HERE ] },

    { title: 'tab3',
    defaultType: 'textfield',
    deferredRender: false, forceLayout: true,
    items: [ THE GRID HERE ] },

    { title: 'tab4',
    defaultType: 'textfield',
    deferredRender: false, forceLayout: true,
    items: [ THE GRID HERE ] }
    ] });


    Please help on this one with a clean and nice solution.
    Thank you.

  2. #2
    Sencha User siva565's Avatar
    Join Date
    Nov 2010
    Location
    India,Hyderabad
    Posts
    47
    Vote Rating
    0
    siva565 is on a distinguished road

      0  

    Default


    hi...try this

    tabsPanel = new Ext.TabPanel({
    resizeTabs: true,
    enableTabScroll: true,
    minTabWidth: 115,
    tabWidth:135,
    activeTab:0,
    autoDestroy: true,
    margins:'0 0 0 0',
    height: panelHeight - (Ext.isIE6 ? 105 : 107),
    bodyStyle: 'padding-top: 0px; padding-left: 0px; padding-right: 0px; padding-bottom: 0px;',
    deferredRender: false, forceLayout: true,
    plain: false,
    items:
    [
    { title: 'tab1',
    defaultType: 'textfield',
    deferredRender: false, forceLayout: true,
    html:'<div id="myFirstGrid"></div>'

    { title: 'tab2',
    defaultType: 'textfield',
    deferredRender: false, forceLayout: true,
    html:'<div id="mySecondGrid"></div>'

    { title: 'tab3',
    defaultType: 'textfield',
    deferredRender: false, forceLayout: true,
    html:'<div id="myThirdGrid"></div>'
    },

    { title: 'tab4',
    defaultType: 'textfield',
    deferredRender: false, forceLayout: true,
    html:'<div id="myFourthGrid"></div>'
    ] });

    var grid1 = new Ext.grid.GridPanel({
    renderTo: 'myFirstGrid',
    //your grid content
    });

    var grid2 = new Ext.grid.GridPanel({
    renderTo: 'mySecondGrid',
    //your grid content
    });

    var grid3 = new Ext.grid.GridPanel({
    renderTo: 'myThirdGrid',
    //your grid content
    });

    var grid4 = new Ext.gridGridPanel({
    renderTo: 'myFourthGrid',
    //your grid content
    });

Similar Threads

  1. Adding and removing tabs from a tabpanel -- tabs won't display
    By illuminum in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 19 Jun 2013, 10:10 PM
  2. TabPanel with many tabs causes tabs to wrap to second line
    By ShatyUT in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 17 Nov 2010, 7:55 PM
  3. Replies: 3
    Last Post: 19 Oct 2010, 6:31 AM
  4. TabPanel problem: TabPanel unreachable tabs when overflowed
    By developer-si in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 15 Jul 2009, 8:16 AM
  5. TabPanel - removing all tabs, new tabs don't display properly
    By cmizelle in forum Ext 2.x: Help & Discussion
    Replies: 8
    Last Post: 1 May 2008, 7:32 AM

Thread Participants: 1