Edit this page

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>
  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"
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article