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

Calendar and refresh bold Days with custom date collection

1 Answer 41 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Filipe
Top achievements
Rank 1
Filipe asked on 25 May 2012, 07:32 PM
Hello.

I have a problem with the radcalendar that i believe it's the same that i have with the standard silverlight calendar.

I have a date collection (List<DateTime>) available in my view model, that i want to use in the calendar to mark all the days that have appointments. I saw all your examples and maybe because I am not a silverlight experienced user, I couldn't put the collection to feed the bold days and to refresh them.
Can you help me?

It's very important.

Thanks

Filipe

1 Answer, 1 is accepted

Sort by
0
Filipe
Top achievements
Rank 1
answered on 29 May 2012, 12:01 AM
I found out how to solve it.

I used:

ScheduleCalendar.DayTemplateSelector = null;
                ScheduleCalendar.DayTemplateSelector = this.Resources["EventDayTemplateSelector"] as EventDayTemplateSelector;

 

 

and it refreshed the calendar and the bold days started to appear at the right time.

Filipe

Tags
Calendar
Asked by
Filipe
Top achievements
Rank 1
Answers by
Filipe
Top achievements
Rank 1
Share this question
or