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.