Results 1 to 2 of 2

Thread: How to create link to access tabpanel item containing gridpanel?

  1. #1
    Sencha User
    Join Date
    Jul 2011
    Posts
    49
    Vote Rating
    0
      0  

    Default How to create link to access tabpanel item containing gridpanel?

    I've grouptabpanel consist of several items each pointing to display a gridpanel. The gridpanel is included as item from tabpanel items (see code below).

    How to create a link to open directly to display certain gridpanel?

    A friend of mine has suggested me to use jQuery plugin for Ext JS.

    Isn't there any native-solution from Ext JS to solve that?

    Thanks in advance.

    Best regards,
    Zaki

    Here are the codes:

    Code:
    var viewport = new Ext.Panel({
            layout        : 'fit',
            renderTo    : 'content',
            title       : 'The Title of Panel', 
            collapsible : false, 
            autoHeight: true,
            items:[ 
                     {
                xtype: 'grouptabpanel',
                tabWidth: 200,
                activeGroup: 6,
                items: [
                {
                    expanded: true,
                    items: [
                             {
                        xtype: 'portal',
                        title: 'Configuration',
                        autoHeight: true,
                        html: '<a onclick="#lang"> Go to Language Sub-menu</a>'
                        
                    },{
                        title: 'Language',
                        layout: 'fit',
                        ref: '#lang',
                        iconCls: 'x-icon-tickets',
                        style: 'padding: 10px;',
                        items:[languages_grid]
                    }

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,388
    Vote Rating
    499
      0  

    Default

    You can create an itemId for your tabs and then access them using getComponent(). There is also the 'ref' property that can be used. Please note that you will have it adhere to the level:

    ref: '../../mytab' if you are placing it inside a parent panel.

    Regards,
    Scott

Tags for this Thread

Posting Permissions

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