The Default date format is not the same for the Kendo grid and the datetimepicker component

3 posts, 0 answers
  1. Peter Beyer
    Peter Beyer avatar
    27 posts
    Member since:
    Aug 2014

    Posted 16 Dec 2014 Link to this post

    We try to use Kendo UI localization, but it gives us different result.
    If we show the date in the grid, it give us a full GMT formattet datetime display. And if we are using the datetimepicker, it is actually using the mashines localization.

    Are we doing something wrong, or is it a bug in Kendo, so we need to hardcode the datetime format ?

    (Se pictures)

    Kind Regards


    Peter Beyer
    CRM-Byggefakta
  2. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3706 posts

    Posted 18 Dec 2014 Link to this post

    Hello Peter,

    In general, Kendo UI Grid does not format dates automatically. If you would like to format the date then you will need to define the format option of the column. Note that the defined format will honor the used Kendo
    culture.

    With regards to the other question, Kendo UI DatePicker is a specially designed widget that works with dates and honors the specified Kendo culture. It has support for multiple parse date formats defined with parseFormats option. These 'functionality are provided by the widget and are not available when a regular HTML input element is used. If you would like to use regular input element, then you will need to implement the date support manually, as the MVVM value binding does not provide built-in support for it.

    Regards,
    Georgi Krustev
    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. Peter Beyer
    Peter Beyer avatar
    27 posts
    Member since:
    Aug 2014

    Posted 18 Dec 2014 in reply to Georgi Krustev Link to this post

    Okay thank you

    Regards


    Peter Beyer
    CRM-Byggefakta
Back to Top