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

[Solved] Set Timeview range to overnight values

1 Answer 86 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Cyber High
Top achievements
Rank 1
Cyber High asked on 11 May 2009, 04:39 PM

I am using a DateTimePicker to allow users to schedule jobs in the database. I want to constrain the time selection to be between 8:00 PM and 6:00 AM. Is there a way to make the Timeview only show times between 12:00 AM - 6:00 AM and 8:00 PM - 11:00 PM (assuming a 1 hour interval)? I want the available times to be (00:00, 01:00, 02:00, 03:00, 04:00, 05:00, 06:00, 20:00, 21:00, 22:00, 23:00).

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 13 May 2009, 12:30 PM
Hi Guido,

You can bind the TimeView to a custom collection of times:

http://demos.telerik.com/aspnet-ajax/calendar/examples/datetimepicker/customcollection/defaultcs.aspx

Sincerely yours,
Dimo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Calendar
Asked by
Cyber High
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or