1. #1
    Ext User
    Join Date
    Jan 2008
    Posts
    25
    Vote Rating
    0
    mraptor is on a distinguished road

      0  

    Question jumping to another tab

    jumping to another tab


    hi,

    how can I create link in a grid (the grid is inside TabPanel) which when clicked will transffer me to another tab.. let say in the grid I have summary info and when I clicked i want to show in the other tab the full details i.e. the info in this detail tab will also be generated on the fly so I have to make a request and get back json-data..

    thanx

  2. #2
    Sencha User
    Join Date
    Oct 2007
    Posts
    155
    Vote Rating
    0
    thatcoder is on a distinguished road

      0  

    Default


    I'm not doing it right, but it works for me.

    I id and tabid all my tab items.

    so for my comments tab, i have the properties

    Code:
    id: 'tabTasksComments',
    tabid: 'tabTasksComments'
    So I find the TabPanel, and then I activate the item tab.
    Code:
            Ext.getCmp('taskingTabPanel').activate('tabTasksComments');

  3. #3
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    83
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    Add a cellclick eventhandler to the grid. In this handler you can access the current record, change the active tab and load the appropriate data.

Thread Participants: 2