-
22 Jan 2013 2:43 AM #1
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.
-
Best Answer Posted by evantFrom there, a toolbar is a container, so you can use add/remove/insert.Code:
var toolbar = grid.getDockedItems()[0];
-
22 Jan 2013 2:58 AM #2Sencha - Ext JS Dev Team
- Join Date
- Apr 2007
- Location
- Sydney, Australia
- Posts
- 15,068
- Vote Rating
- 97
- Answers
- 166
From there, a toolbar is a container, so you can use add/remove/insert.Code:var toolbar = grid.getDockedItems()[0];
Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
-
22 Jan 2013 3:12 AM #3
Thank You
Thank You
Thank You very much.
It worked for me...


Reply With Quote