Appointment RecurrenceRule Change

2 posts, 0 answers
  1. Sascha
    Sascha avatar
    5 posts
    Member since:
    Apr 2017

    Posted 17 May 2017 Link to this post


    I have a very special question.

    Need to do this:
    The user changes the "RecurrenceRule" of an appointment. Standard is, that the complete appointment series changes - the past, too. I have to identify the selected date of changing the recurrence and change the appointment from this day to all future occurences. Past must be unchanged. How can we get that?

    Please see my examples attached.

    I want to select Saturday 27th. Open the recurrence edit dialog. Then change the series to one hour later. Save. The result must be the same as in my screenshot. Is that possible?

    Thanks for your help.


  2. Dess | Tech Support Engineer, Sr.
    Dess | Tech Support Engineer, Sr.  avatar
    3466 posts

    Posted 18 May 2017 Link to this post

    Hello Sascha, 

    Thank you for writing.  

    The purpose of a recurrence rule is to affect all appointments that belong to it. In order to make an appointment differ from the common rule, you can create an exception to the MasterEvent.Exceptions collection. Additional information is available in the following help article:

    Here is a sample code snippet for your reference: 
    Appointment recurringAppointment = new Appointment(DateTime.Now.AddDays(-5),
        TimeSpan.FromHours(1.0), "Appointment Subject");
    DailyRecurrenceRule rrule = new DailyRecurrenceRule(recurringAppointment.Start, 1, 10);
    recurringAppointment.RecurrenceRule = rrule;
    foreach (Appointment ev in recurringAppointment.GetOccurrences(DateTime.Today, DateTime.Today.AddDays(10)))
        ev.Start = ev.Start.AddHours(1);
        ev.End = ev.End.AddHours(1);

    I hope this information helps. Should you have further questions I would be glad to help.

    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top