Parse the recurrence rule to extract all occurrences

2 posts, 0 answers
  1. IT
    IT avatar
    1 posts
    Member since:
    Aug 2014

    Posted 28 Aug 2018 Link to this post

    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#.
  2. Peter Milchev
    Admin
    Peter Milchev avatar
    570 posts

    Posted 31 Aug 2018 Link to this post

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