zoukankan      html  css  js  c++  java
  • 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

  • 相关阅读:
    1.8 Hello World添加menu
    1.7 HelloWorld 添加视图
    1.6 Hello World
    1.5 组件开发基础
    awk
    sed
    grep / egrep
    Shell基础知识
    和管道符有关的命令
    Shell变量
  • 原文地址:https://www.cnblogs.com/wjx-blog/p/7857443.html
Copyright © 2011-2022 走看看