DataSource dates

0 Answers 4 Views
Grid
CHRISTOPHER
Top achievements
Rank 1
Iron
Iron
CHRISTOPHER asked on 19 May 2025, 01:53 PM

I've seen your demos on setting up the type: "date" and the format: stuff on the model and on the column display for the grid.  Your demo sorts the dates as if they are dates properly.  Ours shows the value as null if we set the type to date.  It displays the string properly if we set it to type string but still sorts as a string.  If we simply set the column to the kendo format and do not use a schema on the datasource, our code still sorts as a string.

https://dojo.telerik.com/TgCibbiL

When I looked at the data in your demo, it looks like the long form GMT.  Today, we are instead blocking the script from sending the .NET property types of DateTime and instead sending a pre-formatted string of the date.  Ran into some serialization issues when posting those same objects with DateTime properties on them.

Are you returning your DateTime properties as strings but formatted in this GMT when you serialize your .NET data objects back to the JavaScript handlers?

No answers yet. Maybe you can help?

Tags
Grid
Asked by
CHRISTOPHER
Top achievements
Rank 1
Iron
Iron
Share this question
or