RecurrencePattern for applying MonthOfYearMask

3 posts, 1 answers
  1. Rajesh
    Rajesh avatar
    6 posts
    Member since:
    Jul 2011

    Posted 23 Dec 2011 Link to this post


    Is there a way for masking the months of year

    like for example i want to make an appointment for say every 5th day of June, November and December

    From the documentation i could get that we can only specify one Month
  2. Answer
    Yana avatar
    4604 posts

    Posted 23 Dec 2011 Link to this post

    Hello Rajesh,

    I am afraid that  there is no way to set MonthsOfYear mask to the RecurrencePattern.  If the months are with even intervals between them, you can use Monthly frequency and Interval like this:

    var pattern = new RecurrencePattern() {
        DayOfMonth = 5,
        Frequency = RecurrenceFrequency.Monthly,
        Interval = 2

    We're sorry for the inconvenience.

    All the best,
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. ITA
    ITA avatar
    384 posts
    Member since:
    Aug 2009

    Posted 20 Apr 2012 Link to this post


    and how can i add this Pattern to my actual appointment?

    Appointment appointment = new Appointment
                Start = start,
                Url = Convert.ToString(tasks_dr.Field<Int64>("id") + "#" + tasks_dr.Field<String>("Betreuer")),
                End = end,                                                     
                Subject = tasks_dr.Field<String>("Subject"),
                 Body = tasks_dr.Field<String>("Body")
    var Pattern = new RecurrencePattern()
                  DayOfMonth = 3

    Second Question:
    I my DB is "Monday, Thuesday, Friday" how do i set this RecurrenceDays by code?

    Thanks a lot
    Best Regards
Back to Top