JSON Data

To bind the Scheduler to data in the JSON format, assign a URL leading to data to the dataSource option.

jQuery
JavaScript
$(function() {
    $("#schedulerContainer").dxScheduler({
        dataSource: "http://url/to/json/data"
    });
});
Angular
HTML
<dx-scheduler
    dataSource="http://url/to/json/data">
</dx-scheduler>

Note that you can also use a JSONP callback parameter supported by jQuery.ajax().

jQuery
JavaScript
$(function() {
    $("#schedulerContainer").dxScheduler({
        dataSource: "http://url/to/json/data/jsonpdata?callback=?"
    });
});
Angular
HTML
<dx-scheduler
    dataSource="http://url/to/json/data/jsonpdata?callback=?">
</dx-scheduler>

If you need to process data after obtaining it, implement the CustomStore. For details, see the Custom Sources topic.

See Also