在我的项目中包含DateTime值的每个网格(AngujarJs的Kendo)中,我得到了这个NaN/NaN/NaN
以下是我的方案:
schema: {
model: {
id: 'RequestId',
fields: {
RequestId: { type: 'number' },
RequestNumber: { type: 'number'},
FileNumber: { type: 'string' },
RegistrationDate: { type: 'datetime' },
RequestStatus: { type: 'string' },
UnitName: { type: 'string' }
}
}
}我尝试过使用RegistrationDate: { type: 'string' },或RegistrationDate: { type: 'date' },,但没有任何改变,我还在我的columns上尝试了这个
{
field: 'RegistrationDate',
title: 'Fecha de Registro',
type: 'date'
},或者是type: 'datetime'什么都没有。
以下是我从服务器获得的内容:

你有什么办法让它工作吗?在网格中显示日期是非常基本的,我知道,在其他项目中我没有问题,但正如你所见,我已经尝试了我能想到的所有方法。
发布于 2016-01-28 16:28:12
试试这个:
{
field: 'RegistrationDate',
title: 'Fecha de Registro',
format: "{0:yyyy-MM-dd HH:mm:ss}"
}https://stackoverflow.com/questions/35023148
复制相似问题