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

a monthlyrecurrence rule question

1 Answer 41 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 20 Jan 2010, 07:57 PM
We set an appoinment with monthlyrecurrence rule.  

Following is the sample code:

--------------------------------------------------------------------------------------------
Appoinment a = new Appoinment ()

a.Start = new DateTime (2010, 1, 20, 8, 0, 0);
a.End = a.Start.Add (new TimeSpan(0,0,30,0));

MonthlyRecurrence monthrule = new MonthlyRecurrenceRule();
monthrule.Start = new DateTime (2010, 2, 1);
monthrule.End = new DateTime (2010, 6, 1);
monthrule.WeekDays = WeekDays.Tuesday;
monthrule.WeekNumber = 1;

a.RecurrenceRule = monthrule;

Radscheduler1.Appoinments.Add(a);

-----------------------------------------------------------------------------------------------------------------------

We only see two appoinments showing up,  the first Tuesday of February and March.   But there are more than two months,  By this rule,  the appoinment is supposed to show up in February, March, April, May and June?

What do we miss here ?

1 Answer, 1 is accepted

Sort by
0
Dobry Zranchev
Telerik team
answered on 21 Jan 2010, 12:45 PM
Hello Ming Zhao,

Your example create a recurrent appointment that is repeated every Tuesday of the first week of the month if the first week of the month contains Tuesday. We are not sure that we understand your scenario completely. Therefore, we will need additional information to help you. Please describe in more details what you are trying to achieve.

Sincerely yours,
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