Array Only

To bind the Scheduler to an array, pass this array to the dataSource option.

JavaScript
var appointments = [
    { 
        text: 'Meet with a customer', 
        startDate: new Date(2016, 4, 10, 11, 0), 
        endDate: new Date(2016, 4, 10, 13, 0) 
    }, { 
        text: 'Discuss results', 
        startDate: new Date(2016, 5, 11, 12, 0), 
        endDate: new Date(2016, 4, 11, 13, 0) 
    },
    // ...
];

$(function(){
    $("#schedulerContainer").dxScheduler({
        dataSource: appointments
    });
});

If objects in the array need to be processed (for example, filtered), you can create a Query. In the following code, a Query selects objects with text containing 'meet'.

JavaScript
var appointments = [
    { 
        text: 'Meet with a customer', 
        startDate: new Date(2016, 4, 10, 11, 0), 
        endDate: new Date(2016, 4, 10, 13, 0) 
    },
    // ...
];

$(function(){
    $("#schedulerContainer").dxScheduler({
        dataSource: DevExpress.data.query(appointments)
                        .filter("text", "contains", "meet")
                        .toArray()
    });
});
See Also