When the grid is configured for working with UTC on the server-side, the value sent from the filter menu on the client-side would not be properly sent to the server.
If the stringifyDates option of the transport of the data source is set, the value would still be sent in a localized date format without information for the time zone, for instance, GMT(+0300).
In case the value sent from the client is modified, the parameterMap would be called afterward and would override the modified value.
Moreover, the Kendo UI Binder on the server-side is not configured to be working with dates that have additional data for the time zone appended to the end. Therefore, sending the modified data would not be parsed correctly and FormatException error would be thrown.
Hello, Jyotika,
Could you take a look at the discussion in the following feedback item:
Here's a link to the proposed solution:
https://docs.telerik.com/aspnet-mvc/knowledge-base/datetimepicker-datetimeoffset-bind-to-model
The reason why there isn't a built-in functionality is described in the above thread:
While researching the issue we found that there is no one-size-fits-all solution. If we were to add this as a built-in feature the dates had to be forced to use a very specific format. However, this would not work for everyone as we are aiming to make the components usable in various scenarios. Because of this the recommended approach is to use AutoMapper. That would enable you to use the date format that works best in your scenario.
Best Regards,
Georgi Denchev
Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.
Hi,
We have a very popular item for DateTimeOffset binding which will requires us to implement changes both on the client picker binders and also in the server-side extensions.
As we are gathering more information for it, could you take a look at that thread and add your take on it so it can be considered before implementation begins:
Kind
Regards,
Alex Hajigeorgieva
Progress Telerik