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

Predefined timeslots

6 Answers 69 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Johnny
Top achievements
Rank 1
Johnny asked on 08 Sep 2010, 01:48 PM
Hi,

Is it possible to have predefined timeslots? For example that all mondays should be divided into bookable timeslots, 8:00 to 11:00, 11:00 to 14:00, 14:00 to 17:00 and so on. All tuesday´s could have a completly different setup and so on.

Possible with templates or something?

//Johnny

6 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 08 Sep 2010, 02:26 PM
Hello Johny,


The demo shows how to cancel the insert or update of an appointment server-side if it will create a time confict with another appointment.
Occupied Timeslots

I believe, same concept you can use for your requirement.


-Shinu.
0
Johnny
Top achievements
Rank 1
answered on 08 Sep 2010, 03:45 PM
Hello Shinu,

Thanks for the response. Yes that would be about half of what i´m trying to do. I want also to set the available timeslots, via templates or xml etc, that users can book. The timeslots that I have predefined is the only available timeslots for the users. For example:
Monday
08:00-11:00 available for users to book
11:00-12:00 Lunch, not available to book
12:00-15:00 available for users to book
Tuesday
06:00-08:00 available for users to book
08:00-09:00 not available to book
09:00-11:00 available for users to book
11:00-12:00 Lunch, not available to book
12:00-15:00 available for users to book
Wednesday
........
....
So ideal for me would be that every monday had the same defined timeslot and every tuesday had the defined timelots and so on.

Thanks
//Johnny
0
Peter
Telerik team
answered on 11 Sep 2010, 05:29 PM
Hello Johnny,

Please, see the kb article on Setting special days or time slots in RadScheduler. I hope it helps.


Kind regards,
Peter
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Johnny
Top achievements
Rank 1
answered on 14 Sep 2010, 06:38 PM
Hello Peter,

Yeah that is close of what I´m trying to achive. Perhaps I should explain what i´m hoping to do. Basically it´s a module for a sitefinity website that allows the admin to configure a scheduler with timeslots that are bookable. I`m wondering if their is a way to set that for example all mondays have 4 timeslots that are available for the users to book. That so the admin would not have to configure all 365 days of the year, but instead configure that all thursdays should have these timeslots, every friday should have these timeslots and so on.

I was hoping to have a neat little visual aid for the admin to define a weeks schedule and that week schedule would be applied for every week ahead until the admin changes the schedule. is this making sense at all?

Thanks

Johnny
0
Peter
Telerik team
answered on 16 Sep 2010, 04:56 PM
Hello Johnny,

You can still use the same approach from the kb article. For example, suppose you want to block the time from 3pm till 5pm on every Thursday, then you can use the following code:
protected void RadScheduler1_TimeSlotCreated(object sender, TimeSlotCreatedEventArgs e)
   {
       if (e.TimeSlot.Start.DayOfWeek == DayOfWeek.Thursday & 14 < e.TimeSlot.Start.Hour & e.TimeSlot.Start.Hour < 17)
       {
           e.TimeSlot.CssClass = "Disabled";
       }
   }


Greetings,
Peter
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Johnny
Top achievements
Rank 1
answered on 17 Sep 2010, 09:45 AM
Thanks Peter,

I´ll experiment a little and see how I can make use of it.

/Johnny
Tags
Scheduler
Asked by
Johnny
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Johnny
Top achievements
Rank 1
Peter
Telerik team
Share this question
or