Categories | Question details Back To List | ||||||||
dhtmlxScheduler scheduler.setLoadMode option applies only to to the first XML-source specified Dear Support team. I am following up on the thread http://www.dhtmlx.com/docs/products/kb/index.shtml?cat=search&page=1&q=11950&ssr=yes&s=scheduler.setLoadMode 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 Answer posted by Stanislav (support) on Nov 11, 2009 05:27 You can try to add the attached extension. With it you will be able to use scheduler.load([xmlUrl,"/agenda/cal/type/holidays"]); Attachments (1)
Answer posted by murmur on Nov 12, 2009 04:46 This fix was spot-on.. Thank you very much for your help |