1. #1
    Ext User
    Join Date
    Oct 2007
    Posts
    48
    Vote Rating
    0
    cprabha is on a distinguished road

      0  

    Default Need Help in TabPanel -- Active tab setting(Extjs2.0)

    Need Help in TabPanel -- Active tab setting(Extjs2.0)


    HTML Code:
    <div id="RES_center_panel2">
             <div id="RES_tab_panel1">  </div>
             <div id="RES_tab_panel2">  </div>
             <div id="RES_tab_panel3">  </div>
             <div id="RES_tab_panel4">  </div>
    </div>
    Code:
     RES_tabs = new Ext.TabPanel({
                renderTo: 'RES_center_panel2',
            tabWidth:150,
             activeTab:0,
                minTabWidth: 120,
                enableTabScroll: true,
                frame:true,
                defaults:{autoHeight: true, autoWidth: true},
                items:[
                    {contentEl:'RES_tab_panel1', id:1, title:"All", listeners: {activate: handleActivate}},
                    {contentEl:'RES_tab_panel2', id:2, title:"A-H", listeners: {activate: handleActivate}},
                    {contentEl:'RES_tab_panel3', id:3, title:"I-R", listeners: {activate: handleActivate}},
                    {contentEl:'RES_tab_panel4', id:4, title: "S-Z", listeners: {activate: handleActivate}}               
                ]
            });
    The Tab will be displayed in a Popup window, The Data for the tab will be filter based on the title value(Working fine).

    When i open the window for the first time , "All" tab is selected on first time .

    and Let us assume ,myself selected "A-H" tab now, and close the window.
    When i open the window again, "A-H" tab is selected by default.

    How to make "All" tab selected all the time when i open the window?

    Would you please help me
    Last edited by evant; 14 Jul 2008 at 12:32 AM. Reason: Please use [code][/code] and [html][/html] tags where appropriate.

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,817
    Vote Rating
    608
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    Use the setActiveTab method of the tab panel after you show the window.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  3. #3
    Ext User
    Join Date
    Oct 2007
    Posts
    48
    Vote Rating
    0
    cprabha is on a distinguished road

      0  

    Default What should be the argument for setActiveTab()

    What should be the argument for setActiveTab()


    i tried like the following ways after Window.show. Still the Tab selected in first click is showing when i opened the window for second time

    RES_tabs.setActiveTab(1);

    RES_tabs.setActiveTab(0);


    RES_tabs.setActiveTab("1");


    What should be the Argument for setActiveTab() in my case .(To make "All" tab as active Tab)

    Is it the "id" or "title" or anything else?

    Please help me.

  4. #4
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,817
    Vote Rating
    608
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    Either the id or the index.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

Thread Participants: 1

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