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

RecurrencePattern for applying MonthOfYearMask

2 Answers 64 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Rajesh
Top achievements
Rank 1
Rajesh asked on 23 Dec 2011, 08:16 AM
hi,

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 Answers, 1 is accepted

Sort by
0
Accepted
Yana
Telerik team
answered on 23 Dec 2011, 09:21 AM
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,
Yana
the Telerik team

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

0
ITA
Top achievements
Rank 1
answered on 20 Apr 2012, 08:37 AM
hi,

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")
     };
     appointment.Resources.Add(resource);
 
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
Tags
ScheduleView
Asked by
Rajesh
Top achievements
Rank 1
Answers by
Yana
Telerik team
ITA
Top achievements
Rank 1
Share this question
or