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

Separate input and picker

1 Answer 145 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 29 Jul 2014, 08:50 PM
Hi,

I'm wondering if it's possible to separate the input from the icon picker in the DateTimePicker.  To be more clear, I want to use the input to enter the time and have the user select the date from the calendar (it's much quicker and easier to type times, and repetitive to type the date over and over again when it changes far less frequently).

Right now if I apply a format and mask to a DateTimePicker to only display the time and change it, the value reverts to today at whatever time I've entered.  I'm also not sure how I could perhaps hide the clock icon to save some space.

Thanks for any help you can provide,
Kevin

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 31 Jul 2014, 07:20 PM
Hello Kevin,

Kendo UI DateTimePicker  is designed to set its value based on the parsed input (value) on blur. When widget format is set to "HH:mm", then it does not have knowledge for the date part and hence the today's date is used. This behavior cannot be changed and you will need to use a full date format (date + time) in order to persist the date and time part simultaneously.
Another option is to use separated DatePicker and TimePicker widgets .Thus user will be able to choose the values separately. Later, you can combine their values in a single Date instance.

Regards,
Georgi Krustev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Date/Time Pickers
Asked by
Kevin
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or