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

Monthly view template for Scheduler

1 Answer 174 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Sanjin
Top achievements
Rank 1
Sanjin asked on 22 Feb 2021, 01:51 PM

I want to achieve the following output for Scheduler monthly view:

- Do not display individual event marks on day cells (I want day number to stay)
- Instead that display event count for that day (e.g. 150, 35)
- Change background color of grid cell based on the number of events per that day (e.g. green for < 30, yellow for > 30 and < 100 and red for > 100)

Does anyone know any example with above functionality - custom month view? Any tips?


1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 25 Feb 2021, 01:49 PM

Hi Sanjin,

Scheduler's Month view has property views.eventsPerDay , which indicates how many events could be listed for a day. When there are more events for a specific day a "more" link will be placed at the bottom of the day slot and will navigate to the day view if clicked. Note however that it cannot be set to 0 and the minimum number of event to show is 1.

There is How to article showing similar scenario how to display events count - Create Custom Month Views with Event Count in the Show More Button. It may be further customized to fit the respective scenario.

The background color of slots in Month View may be changed through views.dayTemplate property.

I hope this is helpful.

Regards,
Dimitar
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
Scheduler
Asked by
Sanjin
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or