在列表页面中遇到不少查询问题,那么查询的字段由于类型很多,所以导致了需要多行显示查询列,查询列采用toolbar

首先在Ext.grid.GridPanel中必须要有tbar对象

然后要增加listeners: {
                    'render': function() {
                        bbar2.render(this.tbar); //add one tbar        
                        //twoTbar.render(this.tbar); //add two tbar        
                        // threeTbar.render(this.tbar); //add three tbar        
                    }
                }

 

可以看到这里有bbar2这样就可以增加很多bar了

 this.bbar2 = new Ext.Toolbar({
                renderTo: grid.tbar,
                items:[]})

当然 有个小技巧 分隔符可以用“-”来表示

这样就ok了

相关文章:

  • 2022-01-13
  • 2021-10-05
  • 2021-09-21
  • 2021-06-27
  • 2019-01-11
  • 2021-10-12
  • 2022-12-23
  • 2021-10-08
猜你喜欢
  • 2021-09-14
  • 2021-12-03
  • 2022-12-23
  • 2021-12-25
  • 2022-12-23
  • 2022-12-23
  • 2021-12-15
相关资源
相似解决方案