I'm trying to create a recurring appointment in the code-behind and am following the below example found here -
http://www.telerik.com/help/silverlight/radscheduler-features-recurrences-recurrence-rule.html
This code doesn't appear to work... RecurrenceRule is an abstract class so you can not create an instance of it like in the example below. Can someone give me an example of creating a recurring appointment programmatically?
http://www.telerik.com/help/silverlight/radscheduler-features-recurrences-recurrence-rule.html
This code doesn't appear to work... RecurrenceRule is an abstract class so you can not create an instance of it like in the example below. Can someone give me an example of creating a recurring appointment programmatically?
Appointment fitnessAppointment =
new
Appointment();
fitnessAppointment.Subject =
"Fitness"
;
fitnessAppointment.Start = DateTime.Now;
fitnessAppointment.End = DateTime.Now.AddHours(2);
RecurrencePattern recurrencePattern =
new
RecurrencePattern();
recurrencePattern.Frequency = RecurrenceFrequency.Weekly;
recurrencePattern.MaxOccurrences = 30;
recurrencePattern.DaysOfWeekMask = RecurrenceDays.Monday | RecurrenceDays.Wednesday | RecurrenceDays.Friday;
RecurrenceRule recurrenceRule =
new
RecurrenceRule( recurrencePattern );
fitnessAppointment.RecurrenceRule = recurrenceRule;