I have attempted to set the "date" in scheduler using the following:
var startDate = Date.parse(start);
var scheduler = $("#scheduler").data("kendoScheduler");
scheduler.setOptions({ date: startDate });
scheduler.view(scheduler.view().name);
When the scheduler widget displays, the current week, or day is shown. I currently do not have the date: or startTime: fields in my scheduler definition.
$("#scheduler").kendoScheduler({
// Cannot edit tasks in schedule
editable: false,
// Define allowable scheduler views
views: [
{ type: "day",
dateHeaderTemplate: kendo.template($("#header-template").html())
},
{ type: "week",
dateHeaderTemplate: kendo.template($("#header-template").html()),
selected: true
},
"month"
],
footer: false,
// Define how the hours are displayed
majorTimeHeaderTemplate: kendo.template("<strong>#=kendo.toString(date,'HH')#</strong><sup>00</sup>"),
eventTemplate: $("#event-template").html(),
// 2 ticks between hours
minorTickCount: 2,
resources: [
{
field: "segment",
dataSource: []
}
],
navigate: scheduler_navigate
});
var startDate = Date.parse(start);
var scheduler = $("#scheduler").data("kendoScheduler");
scheduler.setOptions({ date: startDate });
scheduler.view(scheduler.view().name);
When the scheduler widget displays, the current week, or day is shown. I currently do not have the date: or startTime: fields in my scheduler definition.
$("#scheduler").kendoScheduler({
// Cannot edit tasks in schedule
editable: false,
// Define allowable scheduler views
views: [
{ type: "day",
dateHeaderTemplate: kendo.template($("#header-template").html())
},
{ type: "week",
dateHeaderTemplate: kendo.template($("#header-template").html()),
selected: true
},
"month"
],
footer: false,
// Define how the hours are displayed
majorTimeHeaderTemplate: kendo.template("<strong>#=kendo.toString(date,'HH')#</strong><sup>00</sup>"),
eventTemplate: $("#event-template").html(),
// 2 ticks between hours
minorTickCount: 2,
resources: [
{
field: "segment",
dataSource: []
}
],
navigate: scheduler_navigate
});