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

timepicker in kendo template format on selection

2 Answers 152 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
Bill
Top achievements
Rank 1
Bill asked on 13 Sep 2012, 01:31 PM
I have a timepicker which is defined in a kendo template.  The timepicker behaves as you would expect for a timepicker (drop down of times).  But when a time is selected from the dropdown, It then displays a full datetime string (Wed Sep 21...).  It does not behave as the timepicker does in the MVVM widget binding example (http://demos.kendoui.com/web/mvvm/widgets.html), which displays a time upon selection.  How can I get the timepicker to display just a time when selection from the dropdown is made?

2 Answers, 1 is accepted

Sort by
0
Bill
Top achievements
Rank 1
answered on 13 Sep 2012, 06:17 PM
Some further information.  I have created a jsfiddle example of this display behavior: http://jsfiddle.net/billmcknight/gZz59/
It would seem the problem may be connected to the fact that the kendo template here is a kendo grid and the parent is a Kendo listview (?)  Not sure why this affects the behavior of the timepickers.  A timepicker in a simple kendo template behaves as a timepicker should.(displays a time upon selection, not a full date time string)
0
Andres
Top achievements
Rank 1
answered on 13 Sep 2012, 06:27 PM
you need  to define the type of the fields as "date" and not as strings ... look here

http://jsfiddle.net/exjHE/
Tags
Date/Time Pickers
Asked by
Bill
Top achievements
Rank 1
Answers by
Bill
Top achievements
Rank 1
Andres
Top achievements
Rank 1
Share this question
or