Kendo DatePickerFor CHROME版本56.0.2924中的问题 [英] Kendo DatePickerFor issue in CHROME version 56.0.2924
问题描述
我使用 Kendo DatePickerFor
。
在我最近更新了我的浏览器之后,日期选择器控件。
After I recently updated my chrome browser, it shows blank value in date picker control.
我使用它进行月份选择,使用 MMM yyyy
格式。
I am using it for month selection with MMM yyyy
format.
任何人都可以帮我解决问题吗?
Can anybody please help me out?
PS - 我以前的chrome版本是 55.0.2883
,它工作的很好。
P.S. - My previous chrome version was 55.0.2883
and it was working perfectly fine.
我在view文件中的代码是:
My code in view file is:
@(Html.Kendo().DatePickerFor(m => m.FromDate).Start(CalendarView.Year).Depth(CalendarView.Year).Format("MMM yyyy"))
推荐答案
这为我解决了这个问题:
http://www.telerik.com/forums/date-field-not-rendering-correct-in-browsers-that-support-html-5
This fixed the problem for me: http://www.telerik.com/forums/date-field-not-rendering-correct-in-browsers-that-support-html-5
一些支持日期类型(特别是Chrome)的浏览器会验证设置值,并且它的格式不正确如[RFC 3339]中定义的有效全日期),那么它将被忽略。现在,您可以永久性地将输入类型改为文本,并避免与原生输入相关的任何问题。
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" })
)
这篇关于Kendo DatePickerFor CHROME版本56.0.2924中的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!