Grid 中的日期型列定义:
{
//text: "有效期",
text: "ValidDate",
flex : 1,
dataIndex: 'ValidDate',
editor :
{
xtype : 'datefield',
format: 'Y-m-d',
allowBlank : true
},
renderer : Ext.util.Format.dateRenderer('Y-m-d')
}],
对应的JSON数据中 日期字段 应该是 例如 :“2015/07/09” 而不是 “2015-7-9”