开发者

Telerik MVC DateTimePicker not working in a grid

开发者 https://www.devze.com 2023-02-19 18:23 出处:网络
I have been working with the Telerik controls for MVC, and have come accross an issue with the DateTim开发者_JAVA百科ePicker with their latest release 2011.1.315.

I have been working with the Telerik controls for MVC, and have come accross an issue with the DateTim开发者_JAVA百科ePicker with their latest release 2011.1.315.

The issue is, when using the datetimepicker in a grid, it does not post back the correct values to the controller.

Having looked at it for a while it seems like it may be a regional setting, I have added date formats to the dateTimepicker and now the date picker works, but the datetimePicker and TimePicker do not. My Regional settings are English UK.

I have also uploaded a project to the Telerik support forum that highlights this issue.

I would like to remove the "hard coded" date time formats. and get it to post back the correct date time and time values.

If anyone can tell me how to implement this correctly, it would be greatly appreciated.


This is known issue, which was fixed after release of Q1 2011. I have answered you in the forum thread. The modified JavaScript file is included in the answer.

0

精彩评论

暂无评论...
验证码 换一张
取 消