Radscheduler appointments

5 posts, 0 answers
  1. imtiyaz mohammed
    imtiyaz mohammed avatar
    9 posts
    Member since:
    Jul 2009

    Posted 07 Jul 2009 Link to this post

    Dear All

    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:

    [InvalidOperationException: Cannot locate the parent of appointment with ID = '216673'. Ensure that the parent appointment with ID = '1497' exists and is loaded.]
       Telerik.Web.UI.Scheduling.AppointmentController.DeleteAppointment(Appointment appointmentToDelete, Boolean deleteSeries) +1218
       Telerik.Web.UI.RadScheduler.ProcessPostBackCommand(SchedulerPostBackEvent postBack) +1583
       Telerik.Web.UI.RadScheduler.RaisePostBackEvent(String eventArgument) +59
       Telerik.Web.UI.RadScheduler.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +177
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746
    
    Error-----------------------------------------------------------------------------------------------------------------------------------------

    Can you rectify the error please

    Regards

    Imtiyaz
  2. Malik
    Malik avatar
    6 posts
    Member since:
    Dec 2009

    Posted 24 Feb 2010 Link to this post

    I am getting same error. any solution?
    Thanks
  3. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 01 Mar 2010 Link to this post

    Hello guys,

    Can anyone open a suport ticket and send us a simple working demo of the problem?


    All the best,
    Peter
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  4. Sendrayan
    Sendrayan avatar
    1 posts
    Member since:
    Jul 2010

    Posted 21 Jul 2010 Link to this post

    When I am going to delete the series of child recurrence , the follwoing  error will occur.Please any one help me.

    Cannot locate the parent of appointment with ID = '31'. Ensure that the parent appointment with ID = '29' 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 = '31'. Ensure that the parent appointment with ID = '29' 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:

    [InvalidOperationException: Cannot locate the parent of appointment with ID = '31'. Ensure that the parent appointment with ID = '29' exists and is loaded.]
       Telerik.Web.UI.Scheduling.AppointmentController.DeleteAppointment(Appointment appointmentToDelete, Boolean deleteSeries) +455
       Telerik.Web.UI.RadScheduler.DeleteAppointment(Appointment appointmentToDelete) +107
       Telerik.Web.UI.RadScheduler.ProcessPostBackCommand(SchedulerPostBackEvent postBack) +2397
       Telerik.Web.UI.RadScheduler.RaisePostBackEvent(String eventArgument) +108
       Telerik.Web.UI.RadScheduler.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +39
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565
    


    Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927
  5. Minculescu
    Minculescu avatar
    5 posts
    Member since:
    Jun 2012

    Posted 14 Nov 2012 Link to this post

    I got the same error when trying to delete an appointment that was an exception from a recurring appointment. The problem was that the master appointment was not loaded because when populating the scheduler I filtered it too much (by using the ExpandRecurrence method, and getting back only the occurrences or non-recurring appointments between certain hours on a day).
    My solution was to change the visible part of the scheduler to those hours instead of filtering the appointments when getting them from the database.
Back to Top