Categories | Question details Back To List | ||
Scheduler - Multiple data sources I'm loading data from 2 sources for the current calendar (using re-occuring events). The data from the first data source shows up on the screen when the calendar is rendered, but the data from the second source doesn't display. The default view I start with is Week. If (once the calendar is loaded) I change to Month view I see the data from the second source. If I then go back to the Week view I see the data from the second source. It's almost like I need to call a calendar render function to write the data from the second data source to the screen. scheduler.load("events_rec.php?uid="+scheduler.uid()); scheduler.load("events_tasks.php"); I hope this makes sense. Thanks Answer posted by dhxSupport on Sep 29, 2009 02:56 Can you please provide complete example where we can reproduce this issue? You can find complete example information here http://www.dhtmlx.com/docs/support/what_is_a_completed_demo.htm. Please send such example directly to the support@dhtmlx.com Answer posted by Steve on Sep 29, 2009 07:43 Unfortunately I can't provide direct access to my example as it's on a closed server. However, the file I'm using is the original 01_recurring_events.html file using 2 schedule.load events. Here is the page. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><head> <meta http-equiv="Content-type" content="text/html; charset=utf-8"> <title></title> </head> <script src="codebase/dhtmlxscheduler.js" type="text/javascript" charset="utf-8"></script> <script src="codebase/dhtmlxscheduler_recurring.js" type="text/javascript" charset="utf-8"></script> <link rel="stylesheet" href="codebase/dhtmlxscheduler.css" type="text/css" title="no title" charset="utf-8"> <link rel="stylesheet" href="codebase/dhtmlxscheduler_recurring.css" type="text/css" title="no title" charset="utf-8"> <style type="text/css" media="screen"> html, body{ margin:0px; padding:0px; height:100%; overflow:hidden; } </style> <script type="text/javascript" charset="utf-8"> function init() { scheduler.config.xml_date="%Y-%m-%d %H:%i"; scheduler.config.details_on_create=true; scheduler.config.details_on_dblclick=true; scheduler.init('scheduler_here',null,"week"); scheduler.setLoadMode("month"); scheduler.load("events_rec.php?uid="+scheduler.uid()); scheduler.load("events_tasks.php"); var dp = new dataProcessor("events_rec.php"); dp.init(scheduler); } </script> <body onload="init();"> <div id="scheduler_here" class="dhx_cal_container" style='width:100%; height:100%;'> <div class="dhx_cal_navline"> <div class="dhx_cal_prev_button"> </div> <div class="dhx_cal_next_button"> </div> <div class="dhx_cal_today_button"></div> <div class="dhx_cal_date"></div> <div class="dhx_cal_tab" name="day_tab" style="right:204px;"></div> <div class="dhx_cal_tab" name="week_tab" style="right:140px;"></div> <div class="dhx_cal_tab" name="month_tab" style="right:76px;"></div> </div> <div class="dhx_cal_header"> </div> <div class="dhx_cal_data"> </div> </div> </body> |