PDA

View Full Version : help - Portal add six gridpanel fails



ganwei0008
3 Aug 2010, 8:34 AM
create six gridpanel , add them to portal ,fail ,why?

this is my code :

HR.Index.ProbationAlarmGrid = Ext.extend(Ext.grid.GridPanel,{


});

HR.Index.RetireAlarmGrid = Ext.extend(Ext.grid.GridPanel,{


});

HR.Index.AlterationAlarmGrid = Ext.extend(Ext.grid.GridPanel,{

});

HR.Index.VacationAlarmGrid = Ext.extend(Ext.grid.GridPanel,{
});

HR.Index.ContractAlarmGrid = Ext.extend(Ext.grid.GridPanel,{
});

HR.Index.TaskInfoGrid = Ext.extend(Ext.grid.GridPanel,{

});
HR.Index.MainIndex = Ext.extend(Ext.ux.Portal,{
probationAlarmGrid : null,
retireAlarmGrid : null ,
alterationAlarmGrid : null ,
vacationAlarmGrid : null ,
contractAlarmGrid : null ,
taskInfoGrid : null ,

constructor : function(){
this.probationAlarmGrid = new HR.Index.ProbationAlarmGrid();
this.retireAlarmGrid = new HR.Index.RetireAlarmGrid();
this.alterationAlarmGrid = new HR.Index.AlterationAlarmGrid();
this.vacationAlarmGrid = new HR.Index.VacationAlarmGrid();
this.contractAlarmGrid = new HR.Index.ContractAlarmGrid();
this.taskInfoGrid = new HR.Index.TaskInfoGrid();

HR.Index.MainIndex.superclass.constructor.call(this,{
margins : '35 5 5 0',
items : [{
columnWidth : .33,
style : 'padding: 10px 0 10px 10px',
items : [{
title: '???????',
height: 250,
layout: 'fit' ,
items: this.probationAlarmGrid
},{
title : '??????',
height : 250,
layout : 'fit',
items : this.retireAlarmGrid
}]
},{
columnWidth : .33,
style : 'padding: 10px 0 10px 10px',
items : [{
title: '????????',
height: 250,
layout: 'fit' ,
items: this.alterationAlarmGrid
},{
title : '???????',
height : 250,
layout : 'fit',
items : this.vacationAlarmGrid
}]
},{
columnWidth : .33,
style : 'padding: 10px 0 10px 10px',
items : [{
title: '????????',
height: 250,
layout: 'fit' ,
items: this.contractAlarmGrid
},{
title : '??????',
height : 250,
layout : 'fit',
items : this.taskInfoGrid
}]
}]
});

}
});

var _index = new HR.Index.MainIndex();


under IE 8.0 , Firefox 3.6.8 , Chrome 5.0 ,first portalcolumn can display , second and third portalcolumn cann't display ,but change brower windows size ,three portalcolumn can display,
IE 8.0 error : ext-all 'undefined' is null or not object.

Condor
4 Aug 2010, 12:43 AM
How is HR.Index.MainIndex rendered? Does it have a fixed with (either specified or from a container layout)?