views.majorTimeHeaderTemplate String|Function

The template used to render the major ticks.

By default the scheduler renders the time using the current culture time format.

The fields which can be used in the template are:

  • date - represents the major tick date.

The majorTimeHeaderTemplate option is supported when views.type is set to "day", "week", "workweek" and "timeline" views.

Example - set the major time header template

<div id="scheduler"></div>
<script>
$("#scheduler").kendoScheduler({
  date: new Date("2013/6/6"),
  views: [
    {
      type: "day",
      majorTimeHeaderTemplate: kendo.template("<strong>#=kendo.toString(date, 'h')#</strong><sup>00</sup>")
    },
  ],
  dataSource: [
    {
      id: 1,
      start: new Date("2013/6/6 08:00 AM"),
      end: new Date("2013/6/6 09:00 AM"),
      title: "Interview"
    }
  ]
});
</script>
In this article
Not finding the help you need?