Show Full Days in Scheduler TimelineWeek View
Environment
Product | Progress® Kendo UI® Scheduler for jQuery |
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
- Set the
majorTick
as equal to a full day in minutes and leave only one slot permajorTick
. - 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>