Hi,
I'm taking a lot of caution to display date in right format, but dispite of this it doesn't still work.
In grid columns definition :
1.
columns : [
2.
...
3.
{ field:
"date"
, title:
"At"
, type:
"date"
, format:
"{0: dd/MM/yyyy}"
}
4.
...
5.
]
My datasource :
01.
...
02.
dataSource:
new
kendo.data.DataSource({
03.
data: [{id:1,date:moment().format("DD/MM/YYYY")}],
04.
schema: {
05.
model: {
06.
id:
"id"
,
07.
fields: {
08.
...
09.
date: {type:
"date"
, format:
"dd/MM/yyyy"
},
10.
...
11.
}
12.
}
13.
},
14.
sort: {field:
"date"
, dir:
"asc"
}
15.
})
Setting general kendo culture.
1.
kendo.culture(
"fr-FR"
);
And my grid :
<
div
kendo-grid
=
"kgrid"
k-data-source
=
"...dataSource"
k-options
=
"myoptions"
></
div
>
Thanks in advance for your tips !