@ burnnat: I tried the adddocked in my init function of grid panel, before that I tried adding toolbars like this:
This works super good:
Code:
dockedItems: [
Ext.create( 'Application.MainInfoBar',{dock: 'bottom'}),
Ext.create( 'Application.MainOtherInfoBar',{dock: 'bottom'}),
],
but I wanted to use the addDocked function but it wont
work I call it this way :
Code:
Ext.define('Application.ClientGrid', {
extend: 'Ext.grid.Panel',
mode:'SINGLE',
autoScroll : true,
initComponent: function() { this.store = this.buildClientGridStore();
this.columns = this.buildClientGridColumns();
this.addDocked( Ext.create( 'Application.MainInfoBar',{dock: 'bottom'}),0);
this.addDocked( Ext.create( 'Application.MainInfoBar',{dock: 'bottom'}),1);
}
.
..
}
Error in chrome:
Cannot call method 'insert' of undefined
Cannot read property 'xtype' of undefined
this.bbar works
this.addDocked gives error.