Updating the occurence of recurring appointment

2 posts, 0 answers
  1. roshani
    roshani avatar
    45 posts
    Member since:
    Dec 2010

    Posted 01 Mar 2011 Link to this post

    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
  2. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 02 Mar 2011 Link to this post


    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!
Back to Top