This is a migrated thread and some comments may be shown as answers.

Kendo Date Picker Date disappears in Chrome

4 Answers 381 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
Raja
Top achievements
Rank 1
Raja asked on 17 Mar 2017, 04:59 PM

Hi,

I have a datepicker on a page which was working perfectly until yesterday. Suddenly it stopped showing existing dates in Chrome. if I select new date from the picker it works fine. I get a javascript error in the browser. I have posted similar questions with javascript error couple of years back. http://www.telerik.com/forums/date-format-error-with-date-picker 

It was resolved at that time using the Format.

@(Html.Kendo().DatePickerFor(m => m.BirthDate)
      .Name("BirthDate")
     .Value(Model.BirthDate)
     .Format("MM/dd/yyyy")
     .HtmlAttributes(new { @class = "form-control" }) )

Now as per the suggestion in the above link, i have change the code like this

@(Html.Kendo().DatePickerFor(m => m.BirthDate)
     .Name("BirthDate")
    .HtmlAttributes(new { type = "text" })
    .Value(Model.BirthDate)
    .Format("MM/dd/yyyy")
    .HtmlAttributes(new { @class = "form-control" }))

 

But still no use. I still don't see the dates.

4 Answers, 1 is accepted

Sort by
0
Raja
Top achievements
Rank 1
answered on 17 Mar 2017, 05:09 PM

I don't have an option to edit the above post. But here is the current code, I am not using Format with type.

 

@(Html.Kendo().DatePickerFor(m => m.BirthDate)
     .Name("BirthDate")
    .HtmlAttributes(new { type = "text" })
    .Value(Model.BirthDate)
    .HtmlAttributes(new { @class = "form-control" }))
0
Vasil
Telerik team
answered on 21 Mar 2017, 12:34 PM
Hi,

What is the JavaScript error that you get?

Regards,
Vasil
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Raja
Top achievements
Rank 1
answered on 24 Mar 2017, 04:08 PM

this is the error I am getting, just like the error that I used to get a while ago (same as the incident I referred in the original post)

The specified value "07/06/1954" does not conform to the required format, "yyyy-MM-dd".
0
Vasil
Telerik team
answered on 28 Mar 2017, 10:23 AM
Hi Raja,

The error message you see seems to be from the Chrome itself. And it should not appear if the input have "text" type or don't have any type.

It does not seems to be an issue when I test it locally. Could you send us the output HTML of the page, as you see it in the browser?

Regards,
Vasil
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Date/Time Pickers
Asked by
Raja
Top achievements
Rank 1
Answers by
Raja
Top achievements
Rank 1
Vasil
Telerik team
Share this question
or