1、建整个Panel1页面脚本
var right_gridPanel = Ext.getCmp(“right_gridPanel”);
if(right_gridPanel==null){
/*********************
* 设置列表的表头
**********************/
var cm = new Ext.grid.ColumnModel([
new Ext.grid.RowNumberer({header:'序号',width:40}),
{
id: 'propId', //属性id字段
header: "属性名",
dataIndex: 'propName', //属性名对应字段
width: 60
}
]);
//根据浏览器分辨率计算列表高度与行数
var screenHeight=screen.height;
var gridPanelHeight=screenHeight-285;
right_g