New to Kendo UI for jQueryStart a free 30-day trial

Schema

configuration

The schema configuration of the SchedulerDataSource.

schema

Object
<script>
var dataSource = new kendo.data.SchedulerDataSource({
    transport: {
        read: {
            url: "https://demos.telerik.com/service/v2/core/tasks"
        }
    },
    schema: {
        timezone: "Europe/Sofia",
        model: {
            id: "taskId",
            fields: {
                taskId: { from: "TaskID", type: "number" },
                title: { from: "Title", validation: { required: true } },
                start: { type: "date", from: "Start" },
                end: { type: "date", from: "End" },
                description: { from: "Description" },
                isAllDay: { type: "boolean", from: "IsAllDay" }
            }
        }
    }
});
</script>

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

<script>
var dataSource = new kendo.data.SchedulerDataSource({
    batch: true,
    transport: {
        read: {
            url: "https://demos.telerik.com/service/v2/core/tasks"
        },
        update: {
            url: "https://demos.telerik.com/service/v2/core/tasks/update",
            type: "POST",
            contentType: "application/json"
        },
        create: {
            url: "https://demos.telerik.com/service/v2/core/tasks/create",
            type: "POST",
            contentType: "application/json"
        },
        destroy: {
            url: "https://demos.telerik.com/service/v2/core/tasks/destroy",
            type: "POST",
            contentType: "application/json"
        },
        parameterMap: function(options, operation) {
            if (operation !== "read" && options.models) {
                return kendo.stringify(options.models);
            }
        }
    },
    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>

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.

<script>
    $.getScript('https://kendo.cdn.telerik.com/' + kendo.version + '/js/kendo.timezones.min.js', function() {
        var dataSource = new kendo.data.SchedulerDataSource({
            batch: true,
            transport: {
                read: {
                    url: "https://demos.telerik.com/service/v2/core/tasks"
                },
                update: {
                    url: "https://demos.telerik.com/service/v2/core/tasks/update",
                    type: "POST",
                    contentType: "application/json"
                },
                create: {
                    url: "https://demos.telerik.com/service/v2/core/tasks/create",
                    type: "POST",
                    contentType: "application/json"
                },
                destroy: {
                    url: "https://demos.telerik.com/service/v2/core/tasks/destroy",
                    type: "POST",
                    contentType: "application/json"
                },
                parameterMap: function(options, operation) {
                    if (operation !== "read" && options.models) {
                        return kendo.stringify(options.models);
                    }
                }
            },
            schema: {
                timezone: "Europe/London",
                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>