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

RecurrenceRule and Broken Documentation

3 Answers 39 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Michael Malone
Top achievements
Rank 1
Michael Malone asked on 30 Sep 2010, 05:48 PM
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? 

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;

3 Answers, 1 is accepted

Sort by
0
Accepted
Veronica
Telerik team
answered on 06 Oct 2010, 11:05 AM
Hello Michael Malone,

Actually you are watching a help topic for the Silverlight controls. Here's an example of creating recurring appointments server-side. 

Please let me know if you have further questions.

Best Regards,
Veronica MIlcheva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Stephane
Top achievements
Rank 1
answered on 22 May 2012, 09:12 AM
Hello,

The link provided by Veronica to solve that issue is no longer available.

Can you tell us the right one ?

Thanks,

Stéphane
0
Peter
Telerik team
answered on 22 May 2012, 10:15 AM
Hello Stephane,

Here is the correct url - http://www.telerik.com/help/aspnet-ajax/scheduler-working-with-recurring-appointments.html.


Greetings,
Peter
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 now.
Tags
Scheduler
Asked by
Michael Malone
Top achievements
Rank 1
Answers by
Veronica
Telerik team
Stephane
Top achievements
Rank 1
Peter
Telerik team
Share this question
or