Hi, for the insert, I'm doing this:
Protected Sub rdScheduler_AppointmentInsert(ByVal sender As Object, ByVal e As Telerik.Web.UI.SchedulerCancelEventArgs) Handles rdScheduler.AppointmentInsert
Dim uid As Integer
If Not e.Appointment.Resources.GetResourceByType("User") Is Nothing Then
uid = CInt(e.Appointment.Resources.GetResourceByType("User").ToString)
Else
uid = -1
End If
objEventController.Add(e.Appointment.Subject, e.Appointment.Start, e.Appointment.End, e.Appointment.RecurrenceRule, e.Appointment.RecurrenceParentID, uid)
End Sub
This always seem to insert a 0 as e.Appointment.RecurrenceParentID.
That's fine with me, but when I want to delete an item, it will always say somthing like: "Cannot locate the parent of appointment with ID = '5'. Ensure that the parent appointment with ID = '0' exists and is loaded."
So what should I do.
Protected Sub rdScheduler_AppointmentInsert(ByVal sender As Object, ByVal e As Telerik.Web.UI.SchedulerCancelEventArgs) Handles rdScheduler.AppointmentInsert
Dim uid As Integer
If Not e.Appointment.Resources.GetResourceByType("User") Is Nothing Then
uid = CInt(e.Appointment.Resources.GetResourceByType("User").ToString)
Else
uid = -1
End If
objEventController.Add(e.Appointment.Subject, e.Appointment.Start, e.Appointment.End, e.Appointment.RecurrenceRule, e.Appointment.RecurrenceParentID, uid)
End Sub
This always seem to insert a 0 as e.Appointment.RecurrenceParentID.
That's fine with me, but when I want to delete an item, it will always say somthing like: "Cannot locate the parent of appointment with ID = '5'. Ensure that the parent appointment with ID = '0' exists and is loaded."
So what should I do.