I have a ListView control which uses a client template something like:
If I construct the ListView using:
everything works fine and the dates display correctly. Model.Papers is an IEnumerable<PaperListItem>. PaperListItem.PublicationDate is a C# DateTime.
However, if I construct the ListView using:
the dates come out like "/Date(1382050800000)/".
Why is that?
<
script
type
=
"text/x-kendo-tmpl"
id
=
"paperlist-template"
>
...
<
div
>${kendo.toString(PublicationDate, "dd MMMM yyyy")}</
div
>
...
</
script
>
If I construct the ListView using:
@(Html.Kendo().ListView(Model.Papers)...
everything works fine and the dates display correctly. Model.Papers is an IEnumerable<PaperListItem>. PaperListItem.PublicationDate is a C# DateTime.
However, if I construct the ListView using:
@(Html.Kendo().ListView<IEnumerable<PaperListItem>>()...
the dates come out like "/Date(1382050800000)/".
Why is that?