Results 1 to 3 of 3

Thread: jumping to another tab

  1. #1
    Ext User
    Join Date
    Jan 2008
    Posts
    25
    Vote Rating
    0
      0  

    Question 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
      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
    119
      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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •