dhtmlxScheduler scheduler.setLoadMode option applies only to

Dear Support team.



I am following up on the thread dhtmlx.com/docs/products/kb/ … etLoadMode which has been idle for some time now.



We encounter the same problem. I try to be a bit more specific.



We have 2 sources for the XML



Code:



scheduler.date.week_start = scheduler.date.week_start;

scheduler.date.get_week_end=function(date) {

    return scheduler.date.add(date, 5, “day”);

}



scheduler.config.xml_date="%Y-%m-%d %H:%i";

scheduler.config.date_step = “5”;

scheduler.config.details_on_create=true;

scheduler.config.details_on_dblclick=true;



scheduler.init(‘scheduler_here’,null,“week”);



scheduler.config.show_loading=true;

scheduler.setLoadMode(“month”);



var xmlUrl = “/agenda/cal/type/schedules”;



scheduler.load(xmlUrl);

scheduler.load("/agenda/cal/type/holidays");



var dp = new dataProcessor(xmlUrl);

dp.init(scheduler);









What happens when you load the scheduler initially is that only the first source is being loaded. If you change the date, only the second source is being loaded. If we turn off scheduler.setLoadMode, everything is fine (but we do get ALOT) of data which makes it almost impossible to work.



Here are the XML-Calls in Detail:



onload:

/agenda/cal/type/schedules?timeshift=-60&from=2009-11-01&to=2009-12-01



change date:

/agenda/cal/type/holidays?timeshift=-60&from=2009-12-01&to=2010-01-01



change date 2:

/agenda/cal/type/holidays?timeshift=-60&from=2009-09-01&to=2009-10-01



what was expected:

onload:

/agenda/cal/type/schedules?timeshift=-60&from=2009-11-01&to=2009-12-01

/agenda/cal/type/holidays?timeshift=-60&from=2009-11-01&to=2009-12-01



change date:

/agenda/cal/type/schedules?timeshift=-60&from=2009-12-01&to=2010-01-01

/agenda/cal/type/holidays?timeshift=-60&from=2009-12-01&to=2010-01-01



change date 2:

/agenda/cal/type/schedules?timeshift=-60&from=2009-09-01&to=2009-10-01

/agenda/cal/type/holidays?timeshift=-60&from=2009-09-01&to=2009-10-01



looks to us as if there was no serialization when using scheduler.setLoadMode(“month”);



Any help would be greatly appreciated



Regards

P

You can try to add the attached extension.
With it you will be able to use


scheduler.load([xmlUrl,“/agenda/cal/type/holidays”]);




ext_multisource.zip (378 Bytes)

This fix was spot-on… Thank you very much for your help