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

RadCalender

2 Answers 35 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
swapnil
Top achievements
Rank 1
swapnil asked on 16 Feb 2014, 05:05 AM
Hi Telerik Team,
                             I am using Rad Calender in our Silver light app. i want to display dates with different Foreground and background color depending on date(for eg  if it is weekly off then date is mark as red with heading as "Holiday",if date is  festival then date is mark as blue with heading "Festival" and others like this .how i achieve this functionality me for this .

2 Answers, 1 is accepted

Sort by
0
Accepted
Vladi
Telerik team
answered on 19 Feb 2014, 11:49 AM
Hello,

In order to customize the Style of each CalendarButton in the RadCalendar you will need to create a custom StyleSelector and override its SelectStyle method. In that method you can implement a custom logic that return a custom Style for specific date.

You can take a look at our "WeekdaysButtonStyleSelector" SDK example that is available here. You can download the entire XAML SDK repository as a zip file via this link.

Regards,
Vladi
Telerik
0
swapnil
Top achievements
Rank 1
answered on 20 Feb 2014, 04:33 AM
Thanks a lot
Tags
General Discussions
Asked by
swapnil
Top achievements
Rank 1
Answers by
Vladi
Telerik team
swapnil
Top achievements
Rank 1
Share this question
or