In version v2011.3.1413, I had dates in a JSON data structure (returned by a WCF data service) of the form:
"date":"1910-12-09T08:32:26",
I display the datasource a grid, and it sorted things properly (I am not sure if was just relying on string alphabetic sort or was really understanding the date format.
I specified, in the datasource schmea the following: (whhere I have two date fieds (date: and egplDate:)
In the Grid I do dipslay as follows:
As I said this worked fine.
But I am now using the latest version of UI complete: v2012.1.423
and I see the date column in the GRID as "null".
If change the datasource schema model to string, then sorting works fine:
date:{ type:"string" },
"date":"1910-12-09T08:32:26",
I display the datasource a grid, and it sorted things properly (I am not sure if was just relying on string alphabetic sort or was really understanding the date format.
I specified, in the datasource schmea the following: (whhere I have two date fieds (date: and egplDate:)
model:{
fields:{
idx:{ type:"string" },
classification:{ type:"string" },
creator:{ type:"string" },
date:{ type:"string" },
elevation:{ type:"number" },
datum:{ type:"string" },
size:{ type:"number" },
type:{ type:"string" },
description:{ type:"string" },
dirLocation:{ type:"string" },
distributor:{ type:"string" },
egplDate:{ type:"date" },
handling:{ type:"string" },
product:{ type:"string" },
uniqID:{ type:"string" }
}
In the Grid I do dipslay as follows:
columns:[
{
field:"creator",
width:220
},
{
field:"date",
width:170
}, (// etc.)
As I said this worked fine.
But I am now using the latest version of UI complete: v2012.1.423
and I see the date column in the GRID as "null".
If change the datasource schema model to string, then sorting works fine:
date:{ type:"string" },