Results 1 to 3 of 3

Thread: update tbar of grid dynamically

  1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    31
    Answers
    2
    Vote Rating
    0
      0  

    Default 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
    18,584
    Answers
    672
    Vote Rating
    873
      1  

    Default

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

  4. #3
    Sencha User
    Join Date
    Feb 2012
    Posts
    31
    Answers
    2
    Vote Rating
    0
      0  

    Default Thank You

    Thank You very much.

    It worked for me...

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •