or
// Defining the dataSourcevar schedulerDataSource = new kendo.data.SchedulerDataSource({ transport: { parameterMap: function (options, operation) { if (operation !== "read" && options.models) { return { models: kendo.stringify(options.models) }; } } }, schema: { model: { id: "Id", fields: { id: { from: "Id" }, title: { from: "Title", defaultValue: "No title", validation: { required: true } }, start: { type: "date", from: "StartDate" }, end: { type: "date", from: "EndDate" }, description: { from: "Description" }, calendarId: { from: "CalendarId", validation: { required: true } }, isAllDay: { type: "boolean", from: "IsAllDay" } } } }, filter: { logic: "or", filters: [] } });// Pass data to the DataSourceschedulerDataSource.data = [{"CalendarId":"FirstCalendar","Id":"Id1","Title":"Test","Description":null,"IsAllDay":true,"StartDate":new Date(1318802400000),"EndDate":new Date(1319320800000)},{"CalendarId":"SecondCalendar","Id":"Id2","Title":"Second event","Description":null,"IsAllDay":true,"StartDate":new Date(1319407200000),"EndDate":new Date(1319493600000)}];// Pass filters to the datasourcesschedulerDataSource.filter.filters = [ { field: "CalendarId", operator: "eq", value: "FirstCalendar" },{ field: "CalendarId", operator: "eq", value: "SecondCalendar" }];// Create the scheduler$("#scheduler").kendoScheduler({ date: new Date("2014/03/13"), startTime: new Date("2014/03/13 00:00 AM"), height: $(document).height() - 30, views: [ "day", { type: "workWeek", selected: true }, "week", "month", "agenda" ], save: scheduler_save, remove: scheduler_remove, edit: scheduler_edit, timezone: "Etc/UTC", dataSource: schedulerDataSource, resources: [ { field: "CalendarId", title: "Calendar", dataSource: [ { text: "My first calendar", value: "FirstCalendar", color: "#9fc6e7" },{ text: "My second calendar", value: "SecondCalendar", color: "#7bd148" }] } ], });
<script src="cordova.js"></script><script data-main="scripts/main" src="scripts/require.js"></script>require.config({ paths: { 'jquery': "../kendo/js/jquery.min", 'kendo': "../kendo/js/kendo.mobile.min" }, shim: { 'jquery': { exports: "jquery" }, 'kendo': { deps: ["jquery"], exports: "kendo" } }});// Expose the app module to the global scope so Kendo can access it.var app;require( [ "app" ], function ( application ) { app = application; app.init(); });define(["jquery", "kendo"], function ($, kendo) { var _kendoApplication; return { init: function () { _kendoApplication = new kendo.mobile.Application(document.body, { layout: "tabstrip-layout"}); } }});function buildDataModel() { DataModel.data = new kendo.data.DataSource({ type:"json", pageSize: 5000, //change to infinite when bug fixed. transport:{ read:{ url:AppGlobals.serverURL + "Search", dataType:"json" } }, schema:{ data:"results", total:"count", model:{ fields:{ pid:{ type:"number" }, size:{ type:"number" }, date:{ type:"date" }, type:{ type:"string" }, egpl_date:{ type:"date" }, cocom:{ type:"string" }, country:{ type:"string" }, product_name:{ type:"string" }, outline:{ type:"json" } } } }, error:function (e) { alert("DataMode.js datasource error: " + "\nthrew: " + e.errorThrown + "\nstatus: " + e.status + "\nerrors:" + e.errors + "\nurl: " + e.sender.transport.options.read.url); }, change:function (e) { newData(e); } });}