DatePicker bug in popup editor

3 posts, 1 answers
  1. Answer
    Menashay
    Menashay avatar
    8 posts
    Member since:
    Jul 2012

    Posted 22 Jan 2014 Link to this post

    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. Daniel
    Admin
    Daniel avatar
    2117 posts

    Posted 24 Jan 2014 Link to this post

    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!
  3. Kendo UI is VS 2017 Ready
  4. Menashay
    Menashay avatar
    8 posts
    Member since:
    Jul 2012

    Posted 24 Jan 2014 Link to this post

    Thank you Daniel it is working now.
Back to Top