schema Object

The schema configuration of the SchedulerDataSource.

schema.model Object

The model configuration of the SchedulerDataSource. See SchedulerEvent for more info.

Example - configure the data source model schema

<script>
var dataSource = new kendo.data.SchedulerDataSource({
    transport: {
        read: {
            url: "https://demos.telerik.com/kendo-ui/service/tasks",
            dataType: "jsonp"
        },
        update: {
            url: "https://demos.telerik.com/kendo-ui/service/tasks/update",
            dataType: "jsonp"
        },
        create: {
            url: "https://demos.telerik.com/kendo-ui/service/tasks/create",
            dataType: "jsonp"
        },
        destroy: {
            url: "https://demos.telerik.com/kendo-ui/service/tasks/destroy",
            dataType: "jsonp"
        }
    },
    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" },
                startTimezone: { from: "StartTimezone" },
                endTimezone: { from: "EndTimezone" },
                description: { from: "Description" },
                recurrenceId: { from: "RecurrenceID" },
                recurrenceRule: { from: "RecurrenceRule" },
                recurrenceException: { from: "RecurrenceException" },
                ownerId: { from: "OwnerID", defaultValue: 1 },
                isAllDay: { type: "boolean", from: "IsAllDay" }
            }
        }
    }
});
dataSource.fetch(function() {
    var event = this.at(0);
/* The result can be observed in the DevTools(F12) console of the browser. */
    console.log(event.title); // outputs "Bowling tournament"
});
</script>

schema.timezone String

The timezone which the data source will use to convert the scheduler event dates. By default the current system timezone is used. If the data source is initialized by the scheduler, its timezone option will be used.

The complete list of the supported timezones is available in the List of IANA time zones Wikipedia page.

Example - configure the data source model model

<script>
var dataSource = new kendo.data.SchedulerDataSource({
    transport: {
        read: {
            url: "https://demos.telerik.com/kendo-ui/service/tasks",
            dataType: "jsonp"
        },
        update: {
            url: "https://demos.telerik.com/kendo-ui/service/tasks/update",
            dataType: "jsonp"
        },
        create: {
            url: "https://demos.telerik.com/kendo-ui/service/tasks/create",
            dataType: "jsonp"
        },
        destroy: {
            url: "https://demos.telerik.com/kendo-ui/service/tasks/destroy",
            dataType: "jsonp"
        }
    },
    schema: {
        timezone: "Europe/London", // Use the London timezone
        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" },
                startTimezone: { from: "StartTimezone" },
                endTimezone: { from: "EndTimezone" },
                description: { from: "Description" },
                recurrenceId: { from: "RecurrenceID" },
                recurrenceRule: { from: "RecurrenceRule" },
                recurrenceException: { from: "RecurrenceException" },
                ownerId: { from: "OwnerID", defaultValue: 1 },
                isAllDay: { type: "boolean", from: "IsAllDay" }
            }
        }
    }
});
dataSource.fetch(function() {
    var event = this.at(0);
/* The result can be observed in the DevTools(F12) console of the browser. */
    console.log(event.start); // outputs converted date based on defined timezone
});
</script>
In this article