Results 1 to 4 of 4

Thread: Show/activate the newly added tab won't work

  1. #1
    Sencha User
    Join Date
    Mar 2008
    Posts
    53
    Vote Rating
    3
      0  

    Default Show/activate the newly added tab won't work

    In ext 3.x using the method 'show' after adding a new tab results in that tab being shown/active but it doesn't seem to work in ext4.

    Even the demo at http://dev.sencha.com/deploy/ext-4.0.../tabs-adv.html has a show method in its code after adding a new tab but it doesn't seem to work. Any light on this?

  2. #2
    Sencha User
    Join Date
    Jan 2011
    Location
    Denver, Co
    Posts
    9
    Vote Rating
    1
      0  

    Default

    The following code worked for me. I use to set active tab with show as well, but had to use this instead.

    var tab = Ext.getCmp(tabPanelId);
    tab.add(cardContainerVariable);
    tab.setActiveTab(cardContainerId);

  3. #3
    Sencha - Documentation Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,162
    Vote Rating
    257
      0  

    Default

    I've always used the .show() after adding a tab, too.

  4. #4
    Ext JS Premium Member
    Join Date
    Apr 2010
    Location
    Montreal, Canada
    Posts
    255
    Vote Rating
    7
      0  

    Default

    my current app run on 3.3 and I've been using setActiveTab()

Similar Threads

  1. Replies: 0
    Last Post: 2 Apr 2011, 9:20 AM
  2. Editor ComboBox not appeared on grid's newly added row.
    By AmitOlsys in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 6 Oct 2008, 9:31 PM
  3. How can I submit the newly added grid row
    By dee_rocks in forum Ext 1.x: Help & Discussion
    Replies: 9
    Last Post: 10 Sep 2007, 4:08 PM
  4. Saving the newly added row to the database
    By dee_rocks in forum Ext 1.x: Help & Discussion
    Replies: 2
    Last Post: 8 Sep 2007, 5:33 PM

Posting Permissions

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