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

Getting an Appointment by ID

1 Answer 54 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Kevin Price
Top achievements
Rank 1
Kevin Price asked on 12 Apr 2010, 04:43 PM
Is there an established way for creating an instance of an Appointment through using its ID without creating a scheduler and looping through all of the appointments?

1 Answer, 1 is accepted

Sort by
0
Veronica
Telerik team
answered on 13 Apr 2010, 01:43 PM
Hello Kevin Price,

Use FindById method of the AppointmentCollection like this:

Appointment myAppointment = RadScheduler1.Appointments.FindByID(1) as Appointment;

Have in mind that you could not be able to get the AppointmentsCollection earlier than in RadScheduler1_DataBound event, e.g. Count will be 0 in Page_Load.

Hope this helps.

Sincerely yours,
Veronica Milcheva
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Scheduler
Asked by
Kevin Price
Top achievements
Rank 1
Answers by
Veronica
Telerik team
Share this question
or