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

Question about WeeklyRecurrenceRule

1 Answer 46 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Ming Zhao
Top achievements
Rank 1
Ming Zhao asked on 18 Jan 2010, 05:00 PM
We want to use WeeklyRecurrenceRule to associate with an appointment.

Can we associate more than one days with the rule of one appointment.  Eg:  the same schedule 10:00 am - 10:30 am happens  both on Wednesday and Friday ?

Or we we have to create two appointments, one associated with weeklyrecurrencerule of wednesday and another associated wtih weeklyrecurrencerule of Friday to get this done? 


Do you have something like DaysOfWeekMask of your WPF for Win Control Scheduler also? 

 

1 Answer, 1 is accepted

Sort by
0
Dobry Zranchev
Telerik team
answered on 20 Jan 2010, 08:45 AM
Hello Ming Zhao,

Thanks for your question. You can set the recurrent rule of the appointment:

DateTime dtStart = new DateTime(2010, 1, 20, 8, 0, 0);
DateTime dtEnd = new DateTime(2010, 1, 20, 10, 0, 0);
Appointment appointment = new Appointment(dtStart, dtEnd, "Meeting", "WPF Meeting", "Room 206");

appointment.RecurrenceRule = new WeeklyRecurrenceRule(dtStart, dtEnd.AddMonths(2), WeekDays.Wednesday | WeekDays.Friday, 1);

this.radScheduler1.Appointments.Add(appointment);

Write back if you have other questions.

Regards,
Dobry
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Scheduler and Reminder
Asked by
Ming Zhao
Top achievements
Rank 1
Answers by
Dobry Zranchev
Telerik team
Share this question
or