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

Time Picker Limit to List

2 Answers 34 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 22 Sep 2008, 02:27 PM
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 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 22 Sep 2008, 02:37 PM
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.
0
Daniel
Top achievements
Rank 1
answered on 22 Sep 2008, 03:13 PM
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.
Tags
Calendar
Asked by
Daniel
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Daniel
Top achievements
Rank 1
Share this question
or