1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    31
    Vote Rating
    0
    Answers
    2
    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
    17,055
    Vote Rating
    659
    Answers
    471
    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
    Vote Rating
    0
    Answers
    2
    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