Kendo UI datepicker incompatible with Chrome 56

Kendo UI datepicker incompatible with Chrome 56

Asked on December 18, 2018 in knockout js.
Add Comment


  • 2 Answer(s)

        Presently, The DatePicker wrapper provide the INPUT element type “date“. During the Kendo DatePicker initializes on the client it alters the type of the input to “text“. Thus we prevent the native rendering of the “date” input. ​If the JavaScript is disabled, then the Kendo DatePicker is not initialized and the input can be used as native one.

        The browsers with native support for “date” type  validate the set value and if it is not in the correct format then it is forget . Presently,The user can alter 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" }))
    

        The attribute type=”text” is included depends on the suggestion in kendo UI forum and this work well.

        Here’s a link: http://www.telerik.com/forums/date-field-not-rendering-correct-in-browsers-that-support-html-5

    Answered on December 18, 2018.
    Add Comment

        Including  a format in the code to DatePicker() will work for this,

        For ex:

    @(Html.Kendo().DatePicker()
      .Name("dateReturn")
      .Format("yyyy-MM-dd")
      .Value(DateTime.Today)
      .Min(DateTime.Today)
      ...............
    )
    
    Answered on December 18, 2018.
    Add Comment


  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.