Hi there,
have set
up a Provider for the Scheduler to enable multiple resources…
This part is
working well – but am getting lots of error with my recurring appointments
(normal ones are fine). Have modelled my
code from the example in the DbScheduleProvider in the Demo project.
If I try to
delete a recurring (either series/individual) I get:
Cannot locate the parent of appointment with ID = '15'. Ensure that the
parent appointment with ID = '' exists and is loaded.
[InvalidOperationException:
Cannot locate the parent of appointment with ID = '15'. Ensure that the parent
appointment with ID = '' exists and is loaded.]
Telerik.Web.UI.Scheduling.AppointmentController.DeleteAppointment(ISchedulerInfo
schedulerInfo, Appointment appointmentToDelete, Boolean deleteSeries) +1254
Telerik.Web.UI.RadScheduler.DeleteAppointment(Appointment
appointmentToDelete) +88
Telerik.Web.UI.RadScheduler.ProcessPostBackCommand(SchedulerPostBackEvent
postBack) +1440
Telerik.Web.UI.RadScheduler.RaisePostBackEvent(String
eventArgument) +62
Telerik.Web.UI.RadScheduler.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String
eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
+9672166
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1724
If I move a recurring appointment I get:
Object reference not set to an instance of an object.
An unhandled exception was generated during the execution of the current
web request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below.
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an
object.]
Telerik.Web.UI.Scheduling.AppointmentController.PrepareToEdit(Appointment
appointmentToEdit, Boolean editSeries) +110
Telerik.Web.UI.RadScheduler.Telerik.Web.UI.IScheduler.HandleMove(Appointment
appointmentToMove, DateTime start, DateTime end, Boolean editSeries,
ResourceUpdateInfo resourceUpdateInfo) +46
Telerik.Web.UI.Scheduler.Views.Week.Model.HandleMove(Appointment
appointment, ISchedulerTimeSlot sourceSlot, ISchedulerTimeSlot targetSlot,
Boolean editSeries) +438
Telerik.Web.UI.Scheduler.Views.SchedulerModel.ProcessPostBackCommand(SchedulerPostBackEvent
postBack) +279
Telerik.Web.UI.RadScheduler.ProcessPostBackCommand(SchedulerPostBackEvent
postBack) +3412
Telerik.Web.UI.RadScheduler.RaisePostBackEvent(String eventArgument) +62
Telerik.Web.UI.RadScheduler.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String
eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
+9672166
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1724
Really appreciate any help I can get!
thanks, Andy