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 ?
I tried to look at this example :
But how I am afraid, I can't use it : my no man's land areas are not "special days", but rather a "part" of a day.
Below is the method i tried to use (and which is faulty) :
Thank you.
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 ?
I tried to look at this example :
Setting special days or time slots in RadScheduler
http://www.telerik.com/support/kb/aspnet-ajax/scheduler/setting-special-days-or-time-slots-in-radscheduler.aspxBut how I am afraid, I can't use it : my no man's land areas are not "special days", but rather a "part" of a day.
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 |
Thank you.