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

GetAppointmentsInRange excludes recurrences in given period, why?

2 Answers 50 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Henric
Top achievements
Rank 1
Henric asked on 22 Mar 2011, 05:37 PM

 

 

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 Answers, 1 is accepted

Sort by
0
Henric
Top achievements
Rank 1
answered on 22 Mar 2011, 06:02 PM
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!

0
Veronica
Telerik team
answered on 23 Mar 2011, 11:16 AM
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
Tags
Scheduler
Asked by
Henric
Top achievements
Rank 1
Answers by
Henric
Top achievements
Rank 1
Veronica
Telerik team
Share this question
or