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

@(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

原文地址:https://www.cnblogs.com/wjx-blog/p/7857443.html