I am getting errors when i am deleting an appointment my code and error is given below insert/update working properly but deletion is not working at all
Code C#
protected
void RadScheduler1_AppointmentDelete(object sender, SchedulerCancelEventArgs e)
{
code written for delete
}
private void InitializeComponent()
{
this.Load += new System.EventHandler(this.Page_Load);
this.RadScheduler1.AppointmentInsert += new AppointmentInsertEventHandler(RadScheduler1_AppointmentInsert);
this.RadScheduler1.AppointmentDelete += new AppointmentDeleteEventHandler(RadScheduler1_AppointmentDelete);
this.RadScheduler1.AppointmentUpdate += new AppointmentUpdateEventHandler(RadScheduler1_AppointmentUpdate);
this.RadScheduler1.AppointmentCreated += new AppointmentCreatedEventHandler(RadScheduler1_AppointmentCreated);
}
override
protected void OnInit(EventArgs e)
{
InitializeComponent();
base.OnInit(e);
}
Error--------------------------------------------------------------------------------------------------
Server Error in '/AMS_Baseline_LMS_1' Application.
Cannot locate the parent of appointment with ID = '216673'. Ensure that the parent appointment with ID = '1497' exists and is loaded.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.Exception Details: System.InvalidOperationException: Cannot locate the parent of appointment with ID = '216673'. Ensure that the parent appointment with ID = '1497' exists and is loaded.
Source Error:
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:
|
Can you rectify the error please
Regards
Imtiyaz