this is my scheduler code
<div id="scheduler" style="height:450px; overflow-y:auto;"></div>
<script>
$("#scheduler").kendoScheduler({
date: new Date("2013/6/6"),
timezone: "Etc/UTC",
views: [
"day",
"week",// a view configuration can be a string (the view type) or an object (the view configuration)
{ type: "month", selected: true }, // the "week" view will appear as initially selected
"agenda",
"timeline"
],
dataSource: dsSchedule
});
var dsSchedule = new kendo.data.SchedulerDataSource({
transport: {
read: {
url: '/Projects/GetProject',
dataType: 'json',
},
},
schema: {
model: {
id: 'taskId',
fields: {
taskId: { from: "TaskID", type: "number" },
title: { from: "Title", defaultValue: "No title", validation: { required: true } },
start: { type: "date", from: "Start" },
end: { type: "date", from: "End" },
description: { from: "Description" },
recurrenceId: { from: "RecurrenceID" },
recurrenceRule: { from: "RecurrenceRule" },
recurrenceException: { from: "RecurrenceException" },
isAllDay: { type: "boolean", from: "IsAllDay" }
},
},
},
});
</script>
when i access schedular using $("#scheduler").data('kendoScheduler') it gives error undefined