Kendo Scheduler - Give background color to a weekday based on condition

1 Answer 17 Views
Scheduler
Varun
Top achievements
Rank 1
Varun asked on 24 May 2024, 12:39 PM

Hi,

 

Is there a possibility to give background colour to a weekday in Kendo Scheduler based on some conditions like how we can do it for weekends as seen in the screenshot.. We want to mark holidays in a different colour in the scheduler.

 

Thanks

Varun

1 Answer, 1 is accepted

Sort by
0
Yanmario
Telerik team
answered on 29 May 2024, 05:49 AM

Hello Varun,

The developer can use the `slotClass` callback to apply a custom class on each slot conditionally, e.g.:

https://stackblitz.com/edit/angular-3rg1eb-ef9hra?file=src%2Fapp%2Fapp.component.ts

https://www.telerik.com/kendo-angular-ui-develop/components/scheduler/styling/#toc-styling-the-slots

I hope this helps.

Regards,
Yanmario
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources
Tags
Scheduler
Asked by
Varun
Top achievements
Rank 1
Answers by
Yanmario
Telerik team
Share this question
or