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

Determining which appointments are active.

1 Answer 52 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Craig
Top achievements
Rank 1
Craig asked on 02 Mar 2011, 10:51 PM

I have some backend code that needs to look at a collection of appointments and determine which ones are active now.
Are there any helper methods that would assist in determining this?  or Will I have to use the appointment.Start & appointment.End times in conjunction with the appointment.RecurrenceRule.Patten & appointment.RecurrenceRule.Exceptions to determine which ones are active.

Thanks
Craig.

1 Answer, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 03 Mar 2011, 03:22 PM
Hi Craig,

Unfortunately most of the helper methods in RadScheduleView are internal, but you could check the Telerik.Windows.Controls.ScheduleView.AppointmentExtensions - it contains a few methods that return all occurrences of the specified appointment in the specified date range. This way you could cycle through all of your appointments and filter those that have occurrences in the visible range (I suppose this is what you need).

Greetings,
Valeri Hristov
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
ScheduleView
Asked by
Craig
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Share this question
or