DatePicker and CurrencyTextBox stopped working in Chrome 56

4 posts, 0 answers
  1. vladan strigo
    vladan strigo avatar
    23 posts
    Member since:
    Apr 2005

    Posted 03 Feb Link to this post

    Hi,

    few days ago DatePicker and CurrencyTextBox stopped working in Chrome when version 56. has been realesed.

    Date picker and currency text box are not binded any more, there is no value displayed.

    I checked out the console messages and I found there following 2 messages 

    The specified value "2.1.2017." does not conform to the required format, "yyyy-MM-dd".

    The specified value "10000,00" is not a valid number. The value must match to the following regular expression: -?(\d+|\d+\.\d+|\.\d+)([eE][-+]?\d+)?

    Everything works fine in other browsers Chrome ver. 55, Firefox or IE, without these console message.

    Version of Kendo is 2013.3.1324.

    Can you explain why this happened in new versions of Chrome and how can we easily fix this serious issue?

    Thanks,

    Aljosa

  2. Stefan
    Admin
    Stefan avatar
    416 posts

    Posted 07 Feb Link to this post

    Hello Aljosa,

    This is not a known issue and it was not reproduced in our testing scenario.

    I made an example using the latest version of Kendo UI and it is working as expected:

    http://dojo.telerik.com/UyIsA

    Please advise if I missed something?

    If the issue does not occur with the latest version on your end, please update the Kendo UI version to take advantage of all bug fixes and features.

    Regards,
    Stefan
    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.
  3. Ashley Moss
    Ashley Moss avatar
    2 posts
    Member since:
    Aug 2007

    Posted 09 Feb Link to this post

    I encountered this same issue today and have managed to resolve the issue. For me it was occurring due to the input box having type="date". If you are using kendo directly in javascript, simply omitting this or using type="text" should fix the issue. If, like me, you are running from the MVC wrapper it's slightly different. The best means of fixing it is to use a newer version of Kendo, as it seems that the issue has already been addressed in the newer versions. If this isn't an option, which in this particular case it wasn't for me, then you need to do a small hack to modify the output that the MVC wrapper generates. There may be a more elegant way to do this, but my quick solution was to change:

    @(Html.Kendo().DatePicker().Name("Somedate").Value("13/05/2017"))

    to:

    @Html.Raw(Html.Kendo().DatePicker().Name("Somedate").Value("13/05/2017").ToString().Replace("type=\"date\"","type=\"text\""))

    This essentially gets the output generated by the wrapper and replaces the offending type string with what is present in the newer versions of Kendo.

    Hope this helps in your case.

     

  4. Stefan
    Admin
    Stefan avatar
    416 posts

    Posted 10 Feb Link to this post

    Hello Aljosa,

    Thank you for sharing this approach.

    If updating is not an option we can also recommend setting the HTML attributes like this:

    @(Html.Kendo().DatePickerFor(m => m)
     .HtmlAttributes(new { type = "text" }))


    Regards,
    Stefan
    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.
Back to Top