Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Tim Sanders on Jun 17, 2009 12:37
open dhtmlx forum
Required to Load all data in Scheduler?

I am trying to use the scheduler control for service technicians. I am using a CGI program to provide xml data to the control.

Is it required that I provide all schedules for all months when I load the control? For a large company this could be a lot of data.

Or is there a way to tell the scheduler what dates it has data for and then receive an event/request when more data is needed because the user has moved the view past that range of dates?

Thanks.
Answer posted by Support on Jun 18, 2009 03:40
It is possible to load data dynamically

You can use

scheduler.setLoadMode("month");
scheduler.load("some.php");

where some.php - xml generation feed

If setLoadMode was used , scheduler will generate calls as
     some.php?from=DATEHERE&to=DATEHERE
where DATEHERE - will be a valid date values

In case of "month" mode - calendar will request data for each month ( it is clever enough, to cache already used data - so requests will be sent only once per month )