【发布时间】:2016-05-26 10:01:57
【问题描述】:
我有一个grid:
ProjectListReportGrid = Ext.extend(Ext.grid.GridPanel, {
iconCls: 'silk-grid',
id: 'consolidatedReportGrid',
frame: false,
title: 'Project Team Reports[Team Summary Report]',
initComponent: function () {
this.viewConfig = {
forceFit: true
};
this.tbar = this.buildBottomToolbar();
ProjectListReportGrid.superclass.initComponent
.call(this);
},
buildBottomToolbar: function () {
teamSummaryReportButton = new Ext.Button({
iconCls: 'teamsummaryreport',
handler: this.onAdd,
scope: this,
name: 'Summary'
});
}
});
我在grid上方添加了一个新的toolbar,如下所示:
consolidatedReportGrid.add(new Ext.Toolbar({
width: 1300,
id: 'remove',
buttonAlign: 'center',
tabPosition: 'top',
items: [myRadioGroup]
}));
我想将其位置设置为顶部,但它低于 tbar 的 gridpanel。
【问题讨论】:
-
请验证您的 ExtJS 版本,您同时将问题标记为 ExtJS3 和 ExtJS5。
-
@sergey-novikov 它的 extjs 3
-
Ext 3 或更低版本不能动态添加停靠项。
标签: extjs3