有什么方法可以动态设置grid的headervar SecondTable = Ext.create('Ext.grid.Panel', {
id: 'SecondTable',
border: 1,
margins: '10',
autoScroll:true,
store: SecondStore,
plugins:[
Ext.create('Ext.grid.plugin.CellEditing',{
clicksToEdit:1 //设置鼠标单击1次进入编辑状态
})
],
selType:'cellmodel',//设置为单元格选择模
columns: [
{header: month24[12], dataIndex: '13', width: 50,
editor: {
xtype: 'textfield',
allowBlank: false
}
},
{header: month24[13], dataIndex: '14', width: 50,
editor: {
xtype: 'textfield',
allowBlank: false
}
},
{header: month24[14], dataIndex: '15', width: 50,
editor: {
xtype: 'textfield',
allowBlank: false
}
},
{header: month24[15], dataIndex: '16', width: 50,
editor: {
xtype: 'textfield',
allowBlank: false
}
},
{header: month24[16], dataIndex: '17', width: 50,
editor: {
xtype: 'textfield',
allowBlank: false
}
},
{header: month24[17], dataIndex: '18', width: 50,
editor: {
xtype: 'textfield',
allowBlank: false
}
},
{header: month24[18], dataIndex: '19', width: 50,
editor: {
xtype: 'textfield',
allowBlank: false
}
},
{header: month24[19], dataIndex: '20', width: 50,
editor: {
xtype: 'textfield',
allowBlank: false
}
},
{header: month24[20], dataIndex: '21', width: 50,
editor: {
xtype: 'textfield',
allowBlank: false
}
},
{header: month24[21], dataIndex: '22', width: 50,
editor: {
xtype: 'textfield',
allowBlank: false
}
},
{header: month24[22], dataIndex: '23', width: 50,
editor: {
xtype: 'textfield',
allowBlank: false
}
},
{header: month24[23], dataIndex: '24', width: 50,
editor: {
xtype: 'textfield',
allowBlank: false
}
}
]
});month24 是一个数组 我需要将month24 这24个月的值赋值到header中 ExtJS JAVA
id: 'SecondTable',
border: 1,
margins: '10',
autoScroll:true,
store: SecondStore,
plugins:[
Ext.create('Ext.grid.plugin.CellEditing',{
clicksToEdit:1 //设置鼠标单击1次进入编辑状态
})
],
selType:'cellmodel',//设置为单元格选择模
columns: [
{header: month24[12], dataIndex: '13', width: 50,
editor: {
xtype: 'textfield',
allowBlank: false
}
},
{header: month24[13], dataIndex: '14', width: 50,
editor: {
xtype: 'textfield',
allowBlank: false
}
},
{header: month24[14], dataIndex: '15', width: 50,
editor: {
xtype: 'textfield',
allowBlank: false
}
},
{header: month24[15], dataIndex: '16', width: 50,
editor: {
xtype: 'textfield',
allowBlank: false
}
},
{header: month24[16], dataIndex: '17', width: 50,
editor: {
xtype: 'textfield',
allowBlank: false
}
},
{header: month24[17], dataIndex: '18', width: 50,
editor: {
xtype: 'textfield',
allowBlank: false
}
},
{header: month24[18], dataIndex: '19', width: 50,
editor: {
xtype: 'textfield',
allowBlank: false
}
},
{header: month24[19], dataIndex: '20', width: 50,
editor: {
xtype: 'textfield',
allowBlank: false
}
},
{header: month24[20], dataIndex: '21', width: 50,
editor: {
xtype: 'textfield',
allowBlank: false
}
},
{header: month24[21], dataIndex: '22', width: 50,
editor: {
xtype: 'textfield',
allowBlank: false
}
},
{header: month24[22], dataIndex: '23', width: 50,
editor: {
xtype: 'textfield',
allowBlank: false
}
},
{header: month24[23], dataIndex: '24', width: 50,
editor: {
xtype: 'textfield',
allowBlank: false
}
}
]
});month24 是一个数组 我需要将month24 这24个月的值赋值到header中 ExtJS JAVA
解决方案 »
- org.springframework.beans.factory.BeanDefinitionStoreException,请各位大虾,看看是什么错误,谢谢!
- 编写J2EE程序时的并发问题
- hibernate配置文件
- 想问下服务器端验证一般在哪一层进行?
- 新人求教:file类如何操作远程机器上的文件
- Hibernate中一对一主键关联,和在表上建外键的方向有关系吗???
- 请教GIF转JPG的问题,或者直接读取GIF并对其线性缩放~
- tomcat的配置问题
- 高分请教TOMCAT里面的SESSION处理问题.......
- StrutsTestCase的问题
- SSH事务提交问题
- 求助!!!mysql语句转成hql语句
API中有这句话
求教
该如何使用