getEvents

returns a collection of events which occur during the specified period

array getEvents( [Date from,Date to] );

Parameters

fromDatethe start date of the period
toDatethe end date of the period

Returns

arrayan array of event objects

Example

var evs = scheduler.getEvents(new Date(2013,1,10),new Date(2013,2,10)); 
for (var i=0; i<evs.length; i++){
       alert(evs[i].text);
}
// or
var evs = scheduler.getEvents();// will return all events

Related samples

Details

If you don't specify any parameters, the method will return all events

Back to top