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

Every last Monday of every 2 month

3 Answers 63 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Saulius Kundrotas
Top achievements
Rank 1
Saulius Kundrotas asked on 21 Aug 2011, 06:28 PM
Hi,

I don't see possibility to create recuring appointment "every last Monday of every 2 month". In help i found only "How to Create an Appointment that Occurs on Every "n-th" Week Day and the Interval Between Each Recurrence is "m" Months" and for this is used DayOrdinal property.

If support ticket would help to resolve this quicker let me know.

Thanks,
Saulius

3 Answers, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 22 Aug 2011, 09:00 AM
Hi Saulius,

We have this feature available out of the box, please see the attached screenstot.

Kind regards,
Valeri Hristov
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Saulius Kundrotas
Top achievements
Rank 1
answered on 22 Aug 2011, 10:49 AM
Thanks for answer, but it would be more productive if you would provide how to achieve this in code and not providing screenshot as you are in this case selling development component and not final products. As I mentioned before I have not found how to achieve this in help of Recurence topic.

Thanks,
Saulius
0
Valeri Hristov
Telerik team
answered on 22 Aug 2011, 02:44 PM
Hi Saulius,

I apologize for misunderstanding you. As you didn't mentioned that you need code sample I assumed that you are asking about the general feature. Here is the code sample:
var appointment = new Appointment
{
    Start = DateTime.Today, 
    End = DateTime.Today.AddHours(1), 
    RecurrenceRule = new RecurrenceRule(
        new RecurrencePattern(
            null, 
            RecurrenceDays.Monday /*day*/, 
            RecurrenceFrequency.Monthly, 2 /*every two months*/, 
            null, 
            -1 /*first day=1, second day=2, ..., last day=-1*/))
}

Regards,
Valeri Hristov
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
ScheduleView
Asked by
Saulius Kundrotas
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Saulius Kundrotas
Top achievements
Rank 1
Share this question
or