This is a migrated thread and some comments may be shown as answers.

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

1 Answer 26 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Monika
Top achievements
Rank 1
Monika asked on 15 Apr 2013, 10:17 AM
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".

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 16 Apr 2013, 01:35 PM
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.
Tags
Scheduler
Asked by
Monika
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or