a monthlyrecurrence rule question

2 posts, 0 answers
  1. Ming Zhao
    Ming Zhao avatar
    44 posts
    Member since:
    Sep 2009

    Posted 20 Jan 2010 Link to this post

    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;



    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 ?

  2. Dobry Zranchev
    Dobry Zranchev avatar
    353 posts

    Posted 21 Jan 2010 Link to this post

    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,
    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.
Back to Top