Hi All,
I am using the Scheduler to plan appointments.
Some Appointments are set by administrator as "no man's land" (for example every Wednesday evening is "off") , so that is you cannot insert any appointment on this given 'slot'.
A problem arises with recurring "no man's land" events.
The potential overlap is detected correctly with the first occurence of the recurring event, but I can't manage to detect the following events.
In other words, on the first wednesday the "collision" is found, not on the subsequent ones.
Any ideas how to do that ?
Thank you.
Below is the method i tried to use (and which is faulty) :
I am using the Scheduler to plan appointments.
Some Appointments are set by administrator as "no man's land" (for example every Wednesday evening is "off") , so that is you cannot insert any appointment on this given 'slot'.
A problem arises with recurring "no man's land" events.
The potential overlap is detected correctly with the first occurence of the recurring event, but I can't manage to detect the following events.
In other words, on the first wednesday the "collision" is found, not on the subsequent ones.
Any ideas how to do that ?
Thank you.
Below is the method i tried to use (and which is faulty) :
| Protected Function isOnHSArea2(ByVal apt As Appointment) As Boolean |
| Dim allAppointments As IList(Of Appointment) = RadScheduler1.Appointments.GetAppointmentsInRange(apt.Start, apt.End) |
| For Each currentAppointment In allAppointments |
| If currentAppointment.ID <> apt.ID Then |
| If (Convert.ToBoolean(currentAppointment.Attributes("isHS"))) Then 'isHS : off Duty |
| Return True |
| End If |
| End If |
| Next |
| Return False |
| 'Return (appointmentsCount > (AppointmentsLimit - 1)) |
| End Function |