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

bolding the associated calendar dates in a RadCalendar that is tied to the ScheduleView

2 Answers 15 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Sammy
Top achievements
Rank 1
Sammy asked on 14 Aug 2012, 08:03 PM
Hi,
I'm doing something similar to
http://demos.telerik.com/silverlight/#ScheduleView/FirstLook
Where, i have a RadCalendar object to the left of the ScheduleView.

In the RadCalendar object, I would like to bold all the dates that have appointments listed in the ScheduleView.

What would be the best way to do that? What event would be the most efficient to tie into, to do something like this?

Thanks!

2 Answers, 1 is accepted

Sort by
0
Accepted
Ventzi
Telerik team
answered on 17 Aug 2012, 11:16 AM
Hello Sammy,

In order to achieve this behavior you have to do several things.

1. You have to extract in a collection all the dates from the AppointmentsSource of the ScheduleView.
2. Create a BoldStyleSelector class that inherits from StyleSelector.
3. Set the DayButtonStyle of RadCalendar to point to your new BoldStyleSelector.
4. Compare the each item (CalendarButtonContent) in the SelectStyle override in the StyleSelector with your extracted date collection and by match set the FontWeight property of the container (CalendarButton) to Bold.

I hope this helps.

All the best,
Ventzi
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Sammy
Top achievements
Rank 1
answered on 19 Aug 2012, 02:05 PM
Thanks!

That what I was looking for. Off to do some coding.
Tags
ScheduleView
Asked by
Sammy
Top achievements
Rank 1
Answers by
Ventzi
Telerik team
Sammy
Top achievements
Rank 1
Share this question
or