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

RadTimePicker - Custom collection of times

3 Answers 95 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Justin
Top achievements
Rank 1
Justin asked on 15 Sep 2008, 03:01 AM
I've seen hints this is possible but I can't seem to track down how to do it.  I'm building a scheduling routine where reservations for made for 15min timeslots each hour.  The database knows which timeslots are avaialble so I'd like to be able to bind the set of available timeslot to the RadTimePicker so it only shows the times that are available.  I can get the collection of available dates quite easily from the database I just don't know how I can bind those dates to the RadTimePicker.  Any help is greatly appreciated!

Thanks, Justin

3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 18 Sep 2008, 02:26 PM
Hi Justin,

Please check this thread for more info:
http://www.telerik.com/community/forums/thread/b311D-bbmmkc.aspx

Sincerely yours,
Vlad
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Justin
Top achievements
Rank 1
answered on 18 Sep 2008, 04:14 PM
Hi Vlad,

Thanks for your reply.  Setting the time interval is something I had already figured out according to the article below.  That approach works just fine if ALL of the times in the interval are always available.  What I need to do is only show the times in the interval which the database indicates are available.  Here's some more background.  We are scheduling student events and require parents to register for a time during the day.  We ask the parent to sign up for a 15min time slot.  Based on the time required to process a student we can only have 10 people sign up for any one 15min time period.  As soon as 10 are signed up for one time period I want to remove that time period from the registration list.  So as the registration day goes through the list of times in the Time View will be getting smaller because fewer of the time periods are available.

So at 9:00am when registration opens the available slots will be all of them for the day:
09:00
09:15
09:30
09:45
10:00
10:15
10:30
10:45
11:00
11:15
11:30
11:45
12:00
12:15
12:30

Part way through the day some of those time periods will be completely full with 10 people registered.  The database knows this and so we just want to show those time periods which still have openings.  It may look something like this:
09:30
09:45
11:00
11:45
12:00
12:30

Eventually all time periods will be fully booked and there will no available time periods.  Our data model is very flexible so the time period can vary (could be 10min or could be an hour or could be a full day).

Is that more clear?  That's what I mean by binding the TimeView to a custom set of dates for display and the list of dates will be changing.  I couldn't see how to accomplish with the control so I built one myself but would gladly replace it with the RadTimePicker if I can accomplish the same thing.

Thanks!
Justin
0
Vlad
Telerik team
answered on 22 Sep 2008, 03:43 PM
Hi Justin,

Unfortunately currently this is not possible. We will do our best to provide this for Q3 (end of October).

All the best,
Vlad
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Calendar
Asked by
Justin
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Justin
Top achievements
Rank 1
Share this question
or