extjs grid 增加多个toolbar工具栏
在创建grid时候这个是必须的:
Ext.onReady(function(){ var tbar1 = new Ext.Toolbar([ {text:'添加按钮'},{text:'修改按钮'},{text:'删除按钮'}]); var main = new Ext.Panel({ title:'一个面板', border:false, tbar : [{text:'一个按钮'}], listeners : { 'render': function(){ tbar1.render(main.tbar); } } }); main.render(document.body); });