1. #1
    Sencha User
    Join Date
    May 2010
    Posts
    1
    Vote Rating
    0
    kanape is on a distinguished road

      0  

    Default Unanswered: Ext.ux.GroupTabPanel: Issue with "setActiveTab" in Ext JS 4.1?

    Unanswered: Ext.ux.GroupTabPanel: Issue with "setActiveTab" in Ext JS 4.1?


    Hi,

    I tried the GroupTabPanel example of Ext JS 4.1 and added only the 'id'
    ...
    items: [{
    xtype: 'grouptabpanel',
    id: 'GroupTabPanel',
    activeGroup: 0,
    items: [{
    ...

    plus
    ....
    myGroupTabPanel = Ext.getCmp('GroupTabPanel');
    myGroupTabPanel.setActiveTab(2);
    ...
    at the end of the script.

    What happend was only a change of tab content but not selecting/highlighting of second tab.
    Using of 'setActiveGroup(2)' was not successful too.
    What did I wrong?

    Regards,
    kanape

  2. #2
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    4,913
    Answers
    371
    Vote Rating
    179
    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 slemmon is a splendid one to behold

      0  

    Default


    Use this instead:
    Code:
    myGroupTabPanel = Ext.getCmp('#GroupTabPanel');
    Instead of using id you might instead use itemId. With id you can only use a single ID per web page - any others will cause a collision. itemId as a config can be used in its place in most cases and itemId can be used multiple times on the web page - just a single use per parent container.

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi