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

DatePicker bug in popup editor

2 Answers 68 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
Menashay
Top achievements
Rank 1
Menashay asked on 22 Jan 2014, 10:39 PM
I initially posted this bug report in the 'kendo-ui-complete-for-asp-net-mvc' but no one answered.  
Perhaps I will have a better success in this forum?

The Kendo DatePicker has a bug it seems when you place it in a popup editor.  
This widget does not bind to a DateTime model property when you place it in a popup editor.
In the attached sample project I changed the culture in the web.config to 'auto' which on my workstation is set to 'en-AU.'
In this sample the 'PostedOn' property is a nullable DateTime though it makes no difference to this bug.
Adding ParseFormats strings makes no difference either.

This project is a modified sample that you have provided previously (see http://www.kendoui.com/forums/kendo-ui-web/date-time-pickers/datetimepicker-format-doesn-t-work-with-initial-default-value.aspx)
As you can see from the attached screenshot kendo datepicker reports on erroneous date even though it is a valid date.
Outside the popup editor, this same datepicker works perfectly good.
Any workaround?

Regards,
Menashay

2 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 24 Jan 2014, 11:33 AM
Hello Menashay,

I posted a reply a few days ago to your questions in the other forum but it seems that is was never made public. This issue is logged in our system and we will fix it as soon as we can.

Regarding the problem with the validation - it occurs because the culture file is not loaded due to incorrect URL and therefore there is a difference between the server and client-side cultures. The correct path to the culture script is:
<script src="@Url.Content("http://cdn.kendostatic.com/2013.3.1316/js/cultures/kendo.culture." + culture + ".min.js")"></script>
I attached the updated project.

Regards,
Daniel
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Menashay
Top achievements
Rank 1
answered on 24 Jan 2014, 09:58 PM
Thank you Daniel it is working now.
Tags
Date/Time Pickers
Asked by
Menashay
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Menashay
Top achievements
Rank 1
Share this question
or