可编辑列表的时间显示问题:
{header:"申请时间",dataIndex:"creTim",width:120,sortable: true,editor:new Ext.form.DateField({format:'Y-m-d'}), renderer:function(value){ if(value instanceof Date){ return new Date(value).format("Y-m-d").toString(); }else{ return value;}}},
修改方法中使用isModified()
if(sore.getAt(i).isModified('creTim')){
creTime = sore.getAt(i).data['creTim'].format("Y-m-d");
}else{
creTime = sore.getAt(i).data['creTim']
}
{header:"申请时间",dataIndex:"creTim",width:120,sortable: true,editor:new Ext.form.DateField({format:'Y-m-d'}), renderer:function(value){ if(value instanceof Date){ return new Date(value).format("Y-m-d").toString(); }else{ return value;}}},
修改方法中使用isModified()
if(sore.getAt(i).isModified('creTim')){
creTime = sore.getAt(i).data['creTim'].format("Y-m-d");
}else{
creTime = sore.getAt(i).data['creTim']
}