Programmatically highlight an appointment

5 posts, 0 answers
  1. Sammy
    Sammy avatar
    26 posts
    Member since:
    Aug 2012

    Posted 29 Aug 2012 Link to this post

    Hi.

    I'm currently setting the appointment of my scheduleview like:

    scheduleView.SetCurrentAppointment(appt);

    However, I would also like to highlight that appointment, like the user just clicked on it, so they can easily see the selected appointment.

    How do I do that?

    Thanks!
  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 03 Sep 2012 Link to this post

    Hi Sammy,

    You just need to set/bind SelectedAppointment property of the ScheduleView.

    Kind regards,
    Yana
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
  4. Stanescu Mihai
    Stanescu Mihai avatar
    33 posts
    Member since:
    Aug 2009

    Posted 04 Sep 2012 Link to this post

    Hello Yana,

    On this subject, is it possible to also clear the SelectedAppointments property programatically from the viewmodel.
    If from the viewmodel is not possible would also consider code-behind.

    Kind regards,
    Mihai
  5. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 04 Sep 2012 Link to this post

    Hi,

    Setting SelectedAppointment property to null will clear the selection in RadScheduleView.

    Greetings,
    Yana
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  6. Stanescu Mihai
    Stanescu Mihai avatar
    33 posts
    Member since:
    Aug 2009

    Posted 04 Sep 2012 Link to this post

    Thanks Yana,

    Worked, but it has to have Mode=TwoWay.

    Best regards,
    Mihai.
Back to Top
DevCraft banner