I am using a MVC DatePicker control defined as follows in my Date editor template:
It is working fine in all PC-based browsers. However, when using Safari on the iPad it works a bit differently. Firstly, when clicking the little calendar icon next to the date field calendar, no calendar pops up. Instead, when I click in the date field, the iPad "slot-machine" spinner control comes up whereby one can select a date. This is cool and I actually like that. However, no matter what date I select using this spinner control, the validation kicks in saying "Please enter a valid date". I've even tried altering the format with the .Format statement in my date picker. Whatever new format I define does apply correctly (once again, confirmed by using any pc-based browser), but still no luck in getting a valid date set in my iPad. Please help.
EDIT: In the Q2-2012 release of KendoUI, the control now displays the calendar pop up when clicking the little calendar icon next to the date field. However, this calendar popup does not respond to any touch events at all.
Html.Kendo().DatePicker()
.Name(ViewData.TemplateInfo.GetFullHtmlFieldName(""))
.Min(new DateTime(2000, 1, 1))
.Max(new DateTime(9999, 12, 31))
.Value((DateTime)ViewData.TemplateInfo.FormattedModelValue)
It is working fine in all PC-based browsers. However, when using Safari on the iPad it works a bit differently. Firstly, when clicking the little calendar icon next to the date field calendar, no calendar pops up. Instead, when I click in the date field, the iPad "slot-machine" spinner control comes up whereby one can select a date. This is cool and I actually like that. However, no matter what date I select using this spinner control, the validation kicks in saying "Please enter a valid date". I've even tried altering the format with the .Format statement in my date picker. Whatever new format I define does apply correctly (once again, confirmed by using any pc-based browser), but still no luck in getting a valid date set in my iPad. Please help.
EDIT: In the Q2-2012 release of KendoUI, the control now displays the calendar pop up when clicking the little calendar icon next to the date field. However, this calendar popup does not respond to any touch events at all.