Move to next Tab

  1. #1

    Move to next Tab

    I have a TabPanel with x Tabs, and a BottonBar, i need navigate through tab on button clicks
                                    <BottomBar>
                                        <ext:Toolbar ID="Toolbar2" runat="server">
                                            <Items>
                                                <ext:ToolbarButton ID="btnPrev" runat="server" Text="Prev" Disabled="true">
                                                <Listeners>
                                                    <Click Handler="prevTab(#{TabPanel1});" />
                                                </Listeners>
                                                </ext:ToolbarButton>
                                                <ext:ToolbarButton ID="btnNext" runat="server" Text="Next">
                                                <Listeners>
                                                    <Click Handler="nextTab(#{TabPanel1});" />
                                                </Listeners>
                                                </ext:ToolbarButton>
                                                <ext:ToolbarFill />
                                            </Items>
                                        </ext:Toolbar>
                                    </BottomBar>
    I know that exist TabScroll, but I need do it in this form.
    I think, something like this....
    var sigTab = function(source) {
            var tab = source.getActiveTab();
            source.setActiveTab(tab.Index + 1);
        }
    but there not exist method Index!!

    please help!!!
    And sorry about my English!!

    thanks
    Ariel
  2. #2

    RE: Move to next Tab

    Hi Ariel,

    It looks like you're on the right path by using the .setActiveTab() function on the TabPanel, see*http://extjs.com/deploy/dev/docs/?cl...r=setActiveTab


    Geoffrey McGill
    Founder
  3. #3

    RE: Move to next Tab

    hi, thanks for the answer.....the problem is that i donĀ“t know the name or the index of the previous or next tab.

    Thanks
    Ariel
  4. #4

    RE: Move to next Tab

Similar Threads

  1. Move row from one gridpanel to another
    By sneha in forum 1.x Help
    Replies: 15
    Last Post: Dec 29, 2011, 10:58 AM
  2. Grid rows move up and down + mvc
    By vs.mukesh in forum 1.x Help
    Replies: 1
    Last Post: Jul 15, 2011, 4:39 PM
  3. How to move this to code behind?
    By dbassett74 in forum 1.x Help
    Replies: 19
    Last Post: May 28, 2009, 6:42 PM
  4. Move rows between grids
    By fquintero in forum 1.x Help
    Replies: 11
    Last Post: Jan 20, 2009, 10:06 AM
  5. Row move
    By fabiomarcos in forum 1.x Help
    Replies: 0
    Last Post: Nov 21, 2008, 2:14 PM

Posting Permissions