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

[Solved] Resource availability with recurring events

4 Answers 144 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Alex Occhipinti
Top achievements
Rank 1
Alex Occhipinti asked on 20 Jul 2009, 11:13 PM
  I am using a RadScheduler which defaults in month view and uses only the AdvancedEdit form.  I have customized both the data provider as well as the advanced edit form basing my code off the sample code.  Everything is working fine, however, I am not sure how to ensure that appointment are not scheduled with overlapping resources. 
  Each appointment can have one or more resources of the same type.  I have seen numerous examples where, knowing the start and end times, on a single day, the resources allowed to be selected are filtered, but I don't think that an be done here because users can a) change the start and end dates and b) have the appointment recur.
  My latest attempt was to use GetAppointmentsInRange as suggested in a reply to another post here, which seems to work in some cases.  Unfortunately, it does not work in the case when the appointment is recurring.  That is, the code only checks appointments from the start to the end of the first occurrence and not each of the future ones.  Any guidence would be appreciated.
  Also, please to not point me to the sample labelled Resource Availability unless you can explain how to extend this to using the advanced edit form and recurring events.  Thanks!

4 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 22 Jul 2009, 03:10 PM
Hello Alex,

To properly handle the case for recurring appointments, you have to parse the recurrence rule and then apply your availability logic againse each occurrence. The following kb article shows how you can get all recurrences:
http://www.telerik.com/support/kb/aspnet-ajax/scheduler/how-to-display-all-radscheduler-appointments-in-gridview.aspx

I hope this helps.


Kind regards,
Peter
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.
0
Alex Occhipinti
Top achievements
Rank 1
answered on 23 Jul 2009, 01:42 AM
  Peter, does that mean that I'll need to iterate through every single appointment?  Ouch!  Are there any ways to simplify or optimize that process?  Thanks.


0
Peter
Telerik team
answered on 28 Jul 2009, 07:38 AM
Hello Alex,

Yes, that's the only way that I am aware of to handle this case. Should I come up with any other idea, I will follow up and let you know.


Regards,
Peter
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.
0
CHU Sainte-Justine
Top achievements
Rank 1
answered on 06 Sep 2009, 04:25 PM
Hello Alex and Peter

I'm in the same situation, do you have any update on a more effective solution?

Alain
Tags
Scheduler
Asked by
Alex Occhipinti
Top achievements
Rank 1
Answers by
Peter
Telerik team
Alex Occhipinti
Top achievements
Rank 1
CHU Sainte-Justine
Top achievements
Rank 1
Share this question
or