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

Updating the occurence of recurring appointment

1 Answer 46 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
roshani
Top achievements
Rank 1
roshani asked on 01 Mar 2011, 12:02 PM
Hello Admin,

I am implementing the radscheduler. In the appointments table i have a field IsEdited which is to be updated if and only if the date and time of the appointment is changed. I have used the following code which works fine for the simple appointment and also for the recurring appointments while editing the series. When I tried to update an occurence of the appointment the master's IsEdited field gets updated, but the occurence's field doesn't.
protected void rsAppointments_AppointmentUpdate(object sender, AppointmentUpdateEventArgs e)
{
     if (e.ModifiedAppointment.Start != e.Appointment.Start || e.ModifiedAppointment.End != e.Appointment.End)
       {
                    e.ModifiedAppointment.Attributes["IsEdited"] = "1";
         
}
I want only the occurence's IsEdited field to be updated while updating the particular occurence and while editing the series the Master's field should be updated. How i can achive this?
Please Help me........

Thanks and regards,
roshani

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 02 Mar 2011, 01:12 PM

You can handle OnRecurrenceExceptionCreated for this purpose.

Peter
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
Scheduler
Asked by
roshani
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or