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

Select An Appointment

5 Answers 171 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Chris Scallion
Top achievements
Rank 1
Chris Scallion asked on 09 Sep 2010, 10:09 PM
How do I select a specific appointment in code?

More precisely, when the RadSchedulerReminder dialog is displayed and the 'Open" button is pressed, I would like to scroll to and select that appointment.

I am handling the Reminder.ItemOpened() event, and I assume that e.RemindObject points to an appointment in the Scheduler's event storage, please correct me if that is not the case.

-Chris

5 Answers, 1 is accepted

Sort by
0
Brennan
Top achievements
Rank 1
answered on 10 Sep 2010, 03:12 PM
Hey Chris,

I believe if you get the start date of the appointment and set the schedule's "FocusedDate" to that date, you will navigate to the appointment.

Me.radScheduler1.FocusedDate = myAppointment.Start.Value.Date

Cheers,

Brennan
0
Chris Scallion
Top achievements
Rank 1
answered on 10 Sep 2010, 03:26 PM
Thanks for the reply. I actually need to be able to -select- the appointment, not just scroll to the date, since that selection triggers other code that interacts with the user and other controls (Which mouse clicks do currently, however I am not even considering using mouse XY or anything, I'd modify the Scheduler source first, lol).
0
Accepted
Brennan
Top achievements
Rank 1
answered on 10 Sep 2010, 03:43 PM
In that case, in the class SchedulerUIHelper there's a method called SelectAppointment which takes three parameters:
1. A scheduler
2. An appointment
3. A boolean (true if u want it selected)

Maybe that will work.

SchedulerUIHelper.SelectAppointment(radscheduler1, myAppointment, True)

0
Chris Scallion
Top achievements
Rank 1
answered on 10 Sep 2010, 10:50 PM
Nice... That class has EXACTLY the functionality that I have been needing / duplicating for quite a while.... It needs to be documented on the Scheduler help page prominently.

Thanks Brennan!!
0
Dobry Zranchev
Telerik team
answered on 15 Sep 2010, 03:03 PM
Hi guys,

Brennan, thank you for your assistance.

Chris, indeed, the approach that Brennan has suggested is the correct way to select an appointment. This has already been scheduled for documentation.

If you have other questions, feel free to write back.

Greetings,
Dobry Zranchev
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 and Reminder
Asked by
Chris Scallion
Top achievements
Rank 1
Answers by
Brennan
Top achievements
Rank 1
Chris Scallion
Top achievements
Rank 1
Dobry Zranchev
Telerik team
Share this question
or