Example.Grid1 = Ext.extend(Ext.grid.GridPanel, {
initComponent : function() {
var config = {
store : store91,
cm : cm1,
sm : sm1,
bodyStyle : "width:100%",
frame : 'true',
autoScroll : true,
viewConfig : {
forceFit : true,
scrollOffset : 0
},
columnLines : true,
loadMask : {
msg : '正在加载数据,请稍侯……'
},
bbar : ba=new Ext.PagingToolbar({
pageSize : 20,
store : store91,
displayInfo : true,
displayMsg : '显示第 {0} - {1} 条,共 {2} 条',
emptyMsg : "当前没有可以显示的数据"
})
// loadMask:true
}; // eo config object // apply config
Ext.apply(this, Ext.apply(this.initialConfig, config)); // call parent
Example.Grid1.superclass.initComponent.apply(this,
arguments); // load the store at the latest possible moment } // eo function initComponent });
Ext.reg('areaGridPanel1', Example.Grid1);

br=new Ext.PagingToolbar({
pageSize : 20,
store : store92,
displayInfo : true,
displayMsg : '显示第 {0} - {1} 条,共 {2} 条',
emptyMsg : "当前没有可以显示的数据"
})
Example.Grid2 = Ext.extend(Ext.grid.GridPanel, {
initComponent : function() {
var config = {
store : store92,
cm : cm2,
sm : sm2,
bodyStyle : "width:100%",
frame : 'false',
//autoScroll : true,
viewConfig : {
forceFit : true,
scrollOffset : 0
},
columnLines : true,
// loadMask:true ,
loadMask : {
msg : '正在加载数据,请稍侯……'
}
}; // eo config object
Ext.apply(this, Ext.apply(this.initialConfig, config)); // call parent
Example.Grid2.superclass.initComponent.apply(this,
arguments);
} // eo function initComponent });
Ext.reg('partGridPanel1', Example.Grid2); // *************************************************统计情况页签面板
var viewport = new Ext.Panel({
layout : 'fit',
renderTo : 'alarmRecord',
autoWidth : true,
bodyStyle : "width:100%",
frame : 'true',
height : document.getElementById("divBoxC1").clientHeight * 0.96,
collapsible : true,
items : new Ext.TabPanel({
activeTab : 0,
plain : false,
defaults : {
autoScroll : true
},
items : [{
title : '卡报警信息',
autoWidth : true,
autoHeight : true,
items : [{
items : fp
}, {
id : 'areagridtab',
height : document.getElementById("divBoxC1").clientHeight
* 0.76,
xtype : 'areaGridPanel1'
}]
}, {
title : '基站报警信息',
autoWidth : true,
autoHeight : true,
items : [{
items : fq
}, {
id : 'partgridtab',
height : document.getElementById("divBoxC1").clientHeight
* 0.80,
xtype : 'partGridPanel1',
bbar:br
}] }]
})
});
代码就是这样,图片不方便上传