1. #1
    Sencha User
    Join Date
    Mar 2008
    Posts
    53
    Vote Rating
    2
    manilodisan is on a distinguished road

      0  

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

    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
    willjohnathan is on a distinguished road

      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 - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    4,800
    Vote Rating
    167
    slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold

      0  

    Default


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

  4. #4
    Ext JS Premium Member
    Join Date
    Apr 2010
    Location
    Montréal, Canada
    Posts
    220
    Vote Rating
    5
    Christiand is on a distinguished road

      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

Thread Participants: 3