1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    31
    Answers
    2
    Vote Rating
    0
    gokulpotluri is on a distinguished road

      0  

    Default Answered: update tbar of grid dynamically

    Answered: update tbar of grid dynamically


    Hi,

    I am creating a class for grid which is having tbar and some functionalities are added to that tbar with in the class itself.

    Now i am creating an object fro that class some where else and in that object i want to change change/add the functionalities to that tbar already created in the class definition.

    Please help me how to do that.

  2. Code:
    var toolbar = grid.getDockedItems()[0];
    From there, a toolbar is a container, so you can use add/remove/insert.

  3. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,833
    Answers
    453
    Vote Rating
    609
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      1  

    Default


    Code:
    var toolbar = grid.getDockedItems()[0];
    From there, a toolbar is a container, so you can use add/remove/insert.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  4. #3
    Sencha User
    Join Date
    Feb 2012
    Posts
    31
    Answers
    2
    Vote Rating
    0
    gokulpotluri is on a distinguished road

      0  

    Default Thank You

    Thank You


    Thank You very much.

    It worked for me...

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