Select An Appointment

6 posts, 1 answers
  1. Chris Scallion
    Chris Scallion avatar
    9 posts
    Member since:
    Jun 2010

    Posted 09 Sep 2010 Link to this post

    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
  2. Brennan
    Brennan avatar
    39 posts
    Member since:
    Sep 2010

    Posted 10 Sep 2010 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Chris Scallion
    Chris Scallion avatar
    9 posts
    Member since:
    Jun 2010

    Posted 10 Sep 2010 Link to this post

    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).
  5. Answer
    Brennan
    Brennan avatar
    39 posts
    Member since:
    Sep 2010

    Posted 10 Sep 2010 Link to this post

    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)

  6. Chris Scallion
    Chris Scallion avatar
    9 posts
    Member since:
    Jun 2010

    Posted 10 Sep 2010 Link to this post

    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!!
  7. Dobry Zranchev
    Admin
    Dobry Zranchev avatar
    348 posts

    Posted 15 Sep 2010 Link to this post

    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
Back to Top
UI for WinForms is Visual Studio 2017 Ready