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

Inline editable grid time column

1 Answer 118 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jan Kaare
Top achievements
Rank 2
Jan Kaare asked on 18 Apr 2013, 07:07 PM
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?

1 Answer, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 22 Apr 2013, 03:45 PM
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.
<?php
$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!
Tags
Grid
Asked by
Jan Kaare
Top achievements
Rank 2
Answers by
Alexander Valchev
Telerik team
Share this question
or