Time Picker Limit to List

3 posts, 0 answers
  1. Daniel
    Daniel avatar
    22 posts
    Member since:
    Jan 2008

    Posted 22 Sep 2008 Link to this post

    I'm using a multiple Time Pickers with a Time View for a timesheet application.

    The time picker drop down is populated with times in 15 minute increments.

    I'd like to be able to limit selection to only an item in this list. I don't want to disable the ability to type in the field. Basically, I'd love a combination of the combo box "autocomplete" feature and the time picker.

    Is this possible?
  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 22 Sep 2008 Link to this post

    Hi Daniel,

    You can do this if you set TimeView.DataList.RepeatColumns property to 1:

        protected void Page_Load(object sender, EventArgs e)
        {
            RadTimePicker1.TimeView.DataList.RepeatColumns = 1;
            RadTimePicker1.TimeView.DataList.ShowHeader = false; // here is how to hide the header also
        }


    Regards,
    Vlad
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Daniel
    Daniel avatar
    22 posts
    Member since:
    Jan 2008

    Posted 22 Sep 2008 Link to this post

    The single column isn't the issue here - which is what your code fixed.

    I don't want the user to be able to type in "12:03 AM" - the only valid options are the ones in the drop down.
Back to Top