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

Calendar-Changing BackgroundColor of Date Cells

1 Answer 56 Views
Calendar & Scheduling
This is a migrated thread and some comments may be shown as answers.
Lama Chandrasena
Top achievements
Rank 1
Lama Chandrasena asked on 26 Jul 2015, 06:17 AM

Hi,

I have an event handler to capture when a date is selected:

_calendar.SelectionChanged += async (object sender, ValueChangedEventArgs<object> e) => {

  // I want to change the background color of this date cell. 

}

 

How can I change the color of each cell when a date is selected?

 

thanks

1 Answer, 1 is accepted

Sort by
0
Rosy Topchiyska
Telerik team
answered on 29 Jul 2015, 04:38 PM
Hi Lama,

Thank you for writing.

You can try with the RadCalendar.SetStyleForCell property. Here is an article from our online documentation with an example: Calendar Cell Styling

In the method that evaluates cell styles you can check if the cell is of CalendarDateCell type, that has IsSelected property.

I hope this helps.

Regards,
Rosy Topchiyska
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Calendar & Scheduling
Asked by
Lama Chandrasena
Top achievements
Rank 1
Answers by
Rosy Topchiyska
Telerik team
Share this question
or