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

Parse the recurrence rule to extract all occurrences

1 Answer 501 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
IT
Top achievements
Rank 1
IT asked on 28 Aug 2018, 08:25 PM
How can I parse the recurrence rule to extract all occurrences. I want to do this in a console application. I want to query the database and extract the occurrences in c#.

1 Answer, 1 is accepted

Sort by
0
Peter Milchev
Telerik team
answered on 31 Aug 2018, 01:38 PM
Hello,

You can use the TryParse of the Telerik.Web.UI.RecurrenceRule class as explained in Working with Recurring AppointmentsThe RecurrenceRule class supports the ToString and TryParse methods that RadScheduler uses for storing and retrieving the recurrence rules instances. The format is a subset of the standard iCalendar format. 

Then you can iterate the Exceptions collection of the parsed RecurrenceRule.

Regards,
Peter Milchev
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Scheduler
Asked by
IT
Top achievements
Rank 1
Answers by
Peter Milchev
Telerik team
Share this question
or