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

Knowing when an appointment is "now"

1 Answer 42 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
terrysmith
Top achievements
Rank 1
terrysmith asked on 29 Jun 2009, 09:13 PM
I've looked through the documentation and through a lot of the forum threads, and I haven't found an answer to a very basic question. I must be overlooking it though...

If I use the scheduler to schedule alerts or processing jobs that need to be created when the "appointment" fires, how do I know when the appointment is "now"? Is there not a way in the object model to iterate all the appointments every x minutes and determine that it should execute now without doing all of the time/date comparisons myself?

For example in VB.NET:

For Each appointment In appointments 
   If appointment.IsInRange( startTime, endTime ) Then 
      Execute( appointment ) 
   End If 
Next 


Thank you,
Terry

1 Answer, 1 is accepted

Sort by
0
Accepted
T. Tsonev
Telerik team
answered on 30 Jun 2009, 12:55 PM
Hello,

You can use the GetAppointmentsInRange method for this purpose:

For Each apt As Appointment In RadScheduler1.Appointments.GetAppointmentsInRange(startDate, endDate)
        ' ...
Next

I hope this helps.

Greetings,
Tsvetomir Tsonev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Scheduler
Asked by
terrysmith
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Share this question
or