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

Programmatically highlight an appointment

4 Answers 43 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Sammy
Top achievements
Rank 1
Sammy asked on 30 Aug 2012, 01:57 AM
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!

4 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 03 Sep 2012, 06:28 AM
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.

0
Stanescu Mihai
Top achievements
Rank 1
answered on 04 Sep 2012, 06:45 AM
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
0
Yana
Telerik team
answered on 04 Sep 2012, 06:47 AM
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.

0
Stanescu Mihai
Top achievements
Rank 1
answered on 04 Sep 2012, 07:01 AM
Thanks Yana,

Worked, but it has to have Mode=TwoWay.

Best regards,
Mihai.
Tags
ScheduleView
Asked by
Sammy
Top achievements
Rank 1
Answers by
Yana
Telerik team
Stanescu Mihai
Top achievements
Rank 1
Share this question
or