Kendo DatePickerFor issue in CHROME version 56.0.2924

后端 未结 1 1728
青春惊慌失措
青春惊慌失措 2021-01-15 02:09

I am using Kendo DatePickerFor.

After I recently updated my chrome browser, it shows blank value in date picker control.

I am using it for month

相关标签:
1条回答
  • 2021-01-15 03:04

    This fixed the problem for me: http://www.telerik.com/forums/date-field-not-rendering-correct-in-browsers-that-support-html-5

    Some browsers with native support for "date" type (Chrome in particular) validate the set value and if it is not in the correct format (a valid full-date as defined in [RFC 3339]) then it is ignored. For now you can change the type the input to "text" permanently and avoid any issues related with the native inputs

    @(Html.Kendo().DatePicker()
         .Name("datepicker")
         .Value("10/10/2011")
         .HtmlAttributes(new { type = "text" })
    )
    
    0 讨论(0)
提交回复
热议问题