2 Answers, 1 is accepted
Just set up the view like this:
views: [{
type: "day",
startTime: new Date(1901, 1, 1, 0, 0, 0),
endTime: new Date(1901, 1, 1, 23, 59, 59),
workDayStart: new Date(startWorkDayStr),
workDayEnd: new Date(endWorkDayStr),
selected: selectDay
},
{
type: "week",
startTime: new Date(1901, 1, 1, 0, 0, 0),
endTime: new Date(1901, 1, 1, 23, 59, 59),
workDayStart: new Date(startWorkDayStr),
workDayEnd: new Date(endWorkDayStr),
selected: selectWeek
},
{
type: "workWeek",
startTime: new Date(1901, 1, 1, 0, 0, 0),
endTime: new Date(1901, 1, 1, 23, 59, 59),
workDayStart: new Date(startWorkDayStr),
workDayEnd: new Date(endWorkDayStr),
selected: selectWorkWeek
},
{
type: "month",
eventTemplate: kendo.template($('#event_template_month').html()),
eventHeight: 30,
selected: selectMonth
},
{
type: "agenda",
eventTemplate: $('#agendaEventTemplate').html(),
selected: selectAgenda
},
{
type: AgendaDayView,
title: 'Day Agenda',
eventTemplate: $('#agendaEventTemplate').html(),
selected: selectDayAgenda
},
{
type: "timeline",
columnWidth: 1,
minorTickCount: 1,
startTime: new Date(1901, 1, 1, 0, 0, 0),
endTime: new Date(1901, 1, 1, 23, 59, 59),
workDayStart: new Date(startWorkDayStr),
workDayEnd: new Date(endWorkDayStr),
group: {
orientation: 'vertical',
resources: ['AttendeeName']
},
dateHeaderTemplate: kendo.template('<strong>#=kendo.toString(date, "ddd M/dd")#</strong>'),
selected: selectTimeline
},
{
type: "timelineWeek",
minorTickCount: 1,
majorTick: 1440,
columnWidth: 1,
startTime: new Date(1901, 1, 1, 0, 0, 0),
endTime: new Date(1901, 1, 1, 23, 59, 59),
workWeekStart: 1,
workWeekEnd: 5,
workDayStart: new Date(startWorkDayStr),
workDayEnd: new Date(endWorkDayStr),
group: {
orientation: 'vertical',
resources: ['AttendeeName']
},
dateHeaderTemplate: kendo.template('<strong>#=kendo.toString(date, "ddd M/dd")#</strong>'),
selected: selectTimelineWeek
},
{
type: "timelineMonth",
startTime: new Date(1901, 1, 1, 0, 0, 0),
endTime: new Date(1901, 1, 1, 0, 0, 0),
group: {
orientation: 'vertical',
resources: ['AttendeeName']
},
dateHeaderTemplate: kendo.template('<strong>#=kendo.toString(date, "ddd M/dd")#</strong>'),
selected: selectTimelineMonth
}
],
Here I am applying grouping only to my timeline views. Just use week instead and set the grouping how you need it.
The approach that Tyler suggested is the appropriate one for the suggested scenario. Here you will find a small sample which applies grouping only on the Week view of the Scheduler.
Regards,
Veselin Tsvetanov
Progress Telerik