How to Display Leave Type with Specific Background Color in Kendo Scheduler

1 Answer 52 Views
Scheduler
VASANTH
Top achievements
Rank 1
VASANTH asked on 03 Sep 2024, 09:42 AM

I'm working with the Kendo Scheduler and need help displaying different types of leave requests with specific background colors. For example, if an employee applies for a "Sick Leave," I want the event to appear with a specific background color in the Scheduler across different views (Year, Month, and Day).

Is there a way to dynamically apply these colors based on the leave type, so that each leave type (e.g., Sick Leave, Casual Leave, Privilege Leave) has a distinct background color in all views?

Any guidance or code samples would be greatly appreciated.

Thanks in advance!

1 Answer, 1 is accepted

Sort by
0
Svet
Telerik team
answered on 06 Sep 2024, 06:50 AM

Hi Vasanth,

You can style the events based on an event property like leaveType using the eventClass callback. Please see the following article for more details:

https://www.telerik.com/kendo-angular-ui/components/scheduler/styling/

I hope this points you in the right direction.

Regards,
Svet
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Scheduler
Asked by
VASANTH
Top achievements
Rank 1
Answers by
Svet
Telerik team
Share this question
or