How to track the start date and end date of the current view

Hello,
For adding special features to my events i require to bring from the database only the events of the current view i.e. i require the start date and end date of the current page whether it is a week view or year view or month view. For example if it is a week view it will track the start date of the week displayed in the calendar and the end date of that week displayed in that calendar view , or for example if it is a year view it will consider 1st of January of the corresponding year as the start date and 31st of December of that year as the end date and bring those events. Can you please suggest a way of tracking this date. And when i click the previous or the next button, as the view changes my start date and end date must change and events will be retrieved each time according to that.


You can use built in feature , just use

scheduler.setLoadMode(“day”);

and scheduler will add “from” and “to” parameters to data feed ( uri used in scheduler.load ), the feed will be called each time when visible timespan changed.