views.adaptiveSlotHeight Boolean (default: false)

Increases the slot height when containing events up to views.eventsPerDay and reduces its height if there are less events for that specific day.

The adaptiveSlotHeight option is supported when views.type is set to "month". The adaptiveSlotHeight option is not supported in resource grouping or date grouping scenarios.

Example - set the adaptive slot height in month view

<div id="scheduler"></div>
<script>
$("#scheduler").kendoScheduler({
  date: new Date("2013/6/6"),
  views: [
    {
      type: "month",
      eventsPerDay: 4,
      adaptiveSlotHeight: true
    }
  ],
  dataSource: [
    {
      id: 1,
      start: new Date("2013/6/6 08:00 AM"),
      end: new Date("2013/6/6 09:00 AM"),
      title: "Interview1"
    },
    {
      id: 2,
      start: new Date("2013/6/6 08:00 AM"),
      end: new Date("2013/6/6 09:00 AM"),
      title: "Interview2"
    },
    {
      id: 3,
      start: new Date("2013/6/6 08:00 AM"),
      end: new Date("2013/6/6 09:00 AM"),
      title: "Interview3"
    },
    {
      id: 4,
      start: new Date("2013/6/6 08:00 AM"),
      end: new Date("2013/6/6 09:00 AM"),
      title: "Interview4"
    }
  ],
  height: 1000
});
</script>
In this article
Not finding the help you need? Improve this article