GetAppointmentsInRange excludes recurrences in given period, why?

3 posts, 0 answers
  1. Henric
    Henric avatar
    11 posts
    Member since:
    Nov 2008

    Posted 22 Mar 2011 Link to this post

     

     

    I need to show upcoming appointments from today to 7 days ahead. This works fine when the appointment is not recurring.

    This works fine for non recurring appointments:

    For Each a In RadScheduler1.Appointments.GetAppointmentsInRange("2011-03-21", "2011-03-28")
        ...add appointment data to table.
    Next

    While this also works with recurring appointments:

    For Each a In RadScheduler1.Appointments
        ...add appointment data to table.
    Next

    Now, is there a way to include any occurrences (from all recurring appointments) that meets the given period even if the Recurring appoinment Start date is before the given period?

  2. Henric
    Henric avatar
    11 posts
    Member since:
    Nov 2008

    Posted 22 Mar 2011 Link to this post

    Well,
    I kind of answered my own question in this case ;-)
    I think I solved the problem by using two independent loops:

    - First loop for recurring appointments with no limit in range.
    - Second loop for non recurring appointments with limit in range.

    These two are then combined and sorted by date before presentation!

  3. Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 23 Mar 2011 Link to this post

    Hello Henric,

    I'm glad that you found solution on your own.

    Please let me know if you have further questions.

    All the best,
    Veronica Milcheva
    the Telerik team
Back to Top