Edit this page

Show Full Days in Scheduler TimelineWeek View

Environment

Product Progress Kendo UI Scheduler
Operating System All
Browser All
Preferred Language JavaScript

Description

How can I show full days without hours in the TimelineWeek view of the Scheduler?

Solution

  1. Set the majorTick as equal to a full day in minutes and leave only one slot per majorTick.
  2. Configure the DateHeaderTemplate to show the day of the week and, optionally, hide the hour display of the row.
<div id="scheduler"></div>
<script>
$(document).ready(function(){
    $("#scheduler").kendoScheduler({
        date: new Date("2013/6/6"),
        height: 500,
        views: [
            "day",
            {
                type: "timelineWeek",
                selected: true,                     
                majorTick: 1440,
                minorTickCount: 1,
                dateHeaderTemplate: kendo.template("<strong>#=kendo.toString(date, 'dddd')# </strong>"),
            }
        ],
        dataSource: [
        {
            id: 1,
            start: new Date("2013/6/6 08:00 AM"),
            end: new Date("2013/6/6 09:00 AM"),
            title: "Interview"
        }]
    });
})
</script>
<style>
  .k-scheduler-layout.k-scheduler-timelineWeekview tr:nth-child(1) tr:nth-child(2)>th{
     display:none;
  }
</style>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy