Telerik MVC DateTimePicker 无法在网格中工作
我一直在使用 Telerik 的 MVC 控件,并且在最新版本 2011.1.315 中遇到了 DateTimePicker 的问题。
问题是,在网格中使用日期时间选择器时,它不会将正确的值回发到控制器。
看了一会儿,它似乎可能是一个区域设置,我已将日期格式添加到 dateTimepicker,现在日期选择器可以工作,但 datetimePicker 和 TimePicker 不能。我的区域设置是英国英语。
我还上传了 突出显示此问题的 Telerik 支持论坛 项目。
我想删除“硬编码”日期时间格式。并让它回发正确的日期时间和时间值。
如果有人能告诉我如何正确实现这一点,我将不胜感激。
I have been working with the Telerik controls for MVC, and have come accross an issue with the DateTimePicker 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是已知问题,已在 2011 年第一季度发布后修复。我已在 论坛主题。修改后的 JavaScript 文件包含在答案中。
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.