Please excuse me for delaying your answer.
Here is one way we can "cut
" the recurrence appointment and create the new appointment so that the recurrence rule is in the regular size by catching the ReccurenceExceptionCreated
. You can also try the following variation and decide which one fits your needs better:
sender, RecurrenceExceptionCreatedEventArgs e)
size = 50;
(e.Appointment.RecurrenceRule.Length > size)
parsedRule.Range.RecursUntil = e.OccurrenceAppointment.End.AddMinutes(-1);
Appointment newApp =
newApp.Start = e.OccurrenceAppointment.Start;
newApp.End = e.OccurrenceAppointment.End;
newParsedRule.Range.Start = e.OccurrenceAppointment.Start;
newParsedRule.Range.EventDuration = e.OccurrenceAppointment.Duration;
newApp.RecurrenceRule = newParsedRule.ToString();
e.Appointment.RecurrenceRule = parsedRule.ToString();
This one does not have the 24 hour shift as in the attached demo.
Hope this will help you. If you have further questions please don't hesitate to ask.
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