Inline editable grid time column

2 posts, 0 answers
  1. Jan Kaare
    Jan Kaare avatar
    16 posts
    Member since:
    Dec 2010

    Posted 18 Apr 2013 Link to this post

    Is there an existing complete code example for a inline editable grid with a template timepicker?

    How to let such a time related grid column be correct bound to a mySQL datasource time type field for both the 2 grid events read and edit?
  2. Alexander Valchev
    Alexander Valchev avatar
    2895 posts

    Posted 22 Apr 2013 Link to this post

    Hi Jan,

    I am afraid that we do not have such example available for download. There is no time data type in JavaScript - the Date object contains information about both date and time.

    To display only a time information, please use column template.
    $column = new \Kendo\UI\GridColumn();
    $column->template('#= kendo.toString(fieldName, "HH:mm tt") #');

    Time picker editor could be configured via columns.editor function.

    Kind regards,
    Alexander Valchev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top