Separate input and picker

2 posts, 0 answers
  1. Kevin
    Kevin avatar
    22 posts
    Member since:
    Feb 2014

    Posted 29 Jul 2014 Link to this post


    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,
  2. Georgi Krustev
    Georgi Krustev avatar
    3724 posts

    Posted 31 Jul 2014 Link to this post

    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.

    Georgi Krustev

    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.

Back to Top