Calculate RecurrenceState

2 posts, 0 answers
  1. Eric Smith
    Eric Smith avatar
    9 posts
    Member since:
    Nov 2004

    Posted 30 Nov 2016 Link to this post

    Is it possible to determine RecurrenceState for an Appointment (by AppointmentID) in code without instancing a RadScheduler?
    I can get the RecurrenceState for any Appointment by instancing a RadScheduler in code and databinding the instance, then looking up the Appointment by ID.
    My concern is, as I process more Appointments that this process will be too slow.

  2. Veselin Tsvetanov
    Veselin Tsvetanov avatar
    1187 posts

    Posted 05 Dec 2016 Link to this post

    Hello Eric,

    I am afraid that you won't be able to get the RecurrenceState of an appointment without instancing a RadScheduler. The reason for that is the fact that in the database (or any other source) you are keeping only the Master appointment, which holds the RecurrenceRule itself. The re-occurring events are created in the RadScheduler, based on that RecurrenceRule on data binding. Therefore, only after that binding you will be able to get a reference to the created dynamically appointments.

    Veselin Tsvetanov
    Telerik by Progress
    Telerik UI for ASP.NET AJAX is ready for Visual Studio 2017 RC! Learn more.
Back to Top