e.ModifiedAppointment.ID is null error on "Edit only this occurrence"

2 posts, 0 answers
  1. Monika
    Monika avatar
    1 posts
    Member since:
    Jan 2012

    Posted 15 Apr 2013 Link to this post

    hi

    i m using the radscedular  but when i raise an event and set recureence rule and then go again and try to edit  any one of the event
     and click on " Edit only this occurrence" i get "e.ModifiedAppointment.ID" null here hence error.
        protected void RadScheduler1_AppointmentUpdate(object sender, AppointmentUpdateEventArgs e)
            {
                AppointmentInfo ai = FindById(e.ModifiedAppointment.ID);// get null
                ai.CopyInfo(e.ModifiedAppointment);
            }

     i was working on  older verion  and has updated to 2013 version of telerik. when i was usin the older version i use to get id . now not for the same case." any help".
  2. Plamen
    Admin
    Plamen avatar
    3079 posts

    Posted 16 Apr 2013 Link to this post

    Hello Monika,

     
    Thank you for reporting this issue.

    It seems to be a bug in the latest version of RadScheduler in which in the scenario you shared the AppointmentUpdate is thrown two times. I have logged it for fixing in our internal system. Meanwhile you can workaround it by checking if the e.ModifiedAppointment.ID=null because when it is thrown second time it is returning the proper id.

    Hope this will be helpful.

    Regards,
    Plamen
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top