With our implementation, the calendar is reloaded each time the view changes from day, week, month and also when the arrows are clicked (scheduler._click.dhx_cal_prev_button()) to change the date so that only a limited amount of data is loaded from the database. It calls the ‘setCurrentView’ method passing in a date to force a reload. When Agenda is selected, the calendar does not refresh and the dates do not change when these event are triggered.
We also tried to run the following command to force a refresh: scheduler.callEvent(“onViewChange”, [scheduler._mode, Date.parse(date)]); It seems that switching to the agenda view does not fire the onViewChange event.
Is it possible to have the dates dynamic in the agenda view? We would like to always display one days worth of events and have the user change the date.
Thanks for the quick response. The dynamic loading seems to be working fine for us on the day, week and month views. The problem occurs when using the Agenda view. We would like the calendar to refresh with a particular date when the the view is clicked. However, it does not seem to call events properly when selected.
In existing design agenda show events for fixed time span ( now + some time ), so arrows were blocked purposely. The only way to change behavior - codemodification, unfortunately we have not any ready to use examples.
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan