首页 > 其他 > 详细

KendoUi下的DatePicker在谷歌浏览器上不能正常显示时间的解决方法

时间:2017-11-18 18:03:22      阅读:281      评论:0      收藏:0      [点我收藏+]
@(Html.Kendo().DatePickerFor(m => m.BillDate))

解决方法:加上type="text"就能正常显示了。

@(Html.Kendo().DatePickerFor(m => m.BillDate).HtmlAttributes(new { type = "text" }))

 

原解决方法出处:https://www.telerik.com/forums/datepicker-and-currencytextbox-stopped-working-in-chrome-56

Telerik论坛管理员回答内容如下:

Hello Aljosa,

Thank you for sharing this approach.

If updating is not an option we can also recommend setting the HTML attributes like this:

@(Html.Kendo().DatePickerFor(m => m)
 .HtmlAttributes(new { type = "text" }))


Regards,
Stefan 
Telerik by Progress

KendoUi下的DatePicker在谷歌浏览器上不能正常显示时间的解决方法

原文:http://www.cnblogs.com/wjx-blog/p/7857443.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!