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

Change background colour if day contains appointment

1 Answer 12 Views
Calendar & Scheduling
This is a migrated thread and some comments may be shown as answers.
Angus
Top achievements
Rank 1
Angus asked on 01 Dec 2020, 07:47 PM
In the month or week view, how would I change the background colour of the cell if the day contains an appointment? There seems to be no option in CalendarCell to check whether that day has an appointment. Thanks in advance!

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 02 Dec 2020, 09:14 AM

Hi Angus,

Indeed, CalendarCell does not contain directly the information whether there are appointments in this cell. Still, you have the Date this cell corresponds to and you can use that Date to search through the Calendar AppointmentsSource and check whether there are appointments on this day. 

Please give this approach a try and let me know the result.

Regards,
Yana
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Calendar & Scheduling
Asked by
Angus
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or