View Full Version : adding a toolbar to a grid via grids items and then adding buttons

22 Apr 2009, 1:59 AM
hi guys i have defined for the tbar config of my grd a toolbar , that toolbar is successfully added but i cant seem to add buttons to it, there is no config for items or buttons in a toolbar its a variable of the class. This is what i have so far

tbar: new Ext.Toolbar({
listeners : {
beforerender: function(t) {
t.items = [{
xtype: 'button',
text: 'ddd'

any help thanks

22 Apr 2009, 2:37 AM
to add buttons

buttons: [{

text: 'button',


22 Apr 2009, 5:51 AM