Hybrid View

  1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    70
    Vote Rating
    0
    mukeshgla is on a distinguished road

      0  

    Default Unanswered: how to set active item in tabpanel ?

    Unanswered: how to set active item in tabpanel ?


    Hi in Sencha touch 2.0 we use to set active item by using ".SetActiveItem("ID_OF_ITEM"); but in sencha 2.1 its not working. how can we set any item in tab panel explicitly ?

  2. #2
    Sencha User
    Join Date
    Nov 2011
    Location
    England
    Posts
    135
    Vote Rating
    7
    Answers
    11
    george.m is on a distinguished road

      0  

    Default


    Try this beast of a line out.

    Ext.ComponentQuery.query(..selector..)[0].getDockedItems()[0].setActiveTab(1)

  3. #3
    Sencha User
    Join Date
    Apr 2010
    Location
    China
    Posts
    227
    Vote Rating
    20
    Answers
    64
    haduki will become famous soon enough haduki will become famous soon enough

      0  

    Default


    Code:
    setActiveItem('#ID_OF_ITEM');// plus '#' in st2.1,it is cmp query
    I write English by translator.

Thread Participants: 2