Hello,
I have dynamic loading enabled and this is my config:
scheduler.config.container_autoresize = true;
scheduler.config.xml_date = “%Y-%m-%d %H:%i”;
scheduler.config.load_date = “%Y-%m-%d”;
scheduler.config.multisection = true;
scheduler.locale.labels.timeline_tab = “Month”;
scheduler.locale.labels.unit_tab = “Day”;
scheduler.config.details_on_create = true;
scheduler.config.details_on_dblclick = true;
scheduler.config.select = false;
scheduler.config.scroll_hour = 8;
scheduler.config.time_step = 60;
scheduler.config.use_select_menu_space = false;
scheduler.config.all_timed = true;
scheduler.config.full_day = false;
scheduler.config.server_utc = true;
scheduler.config.show_loading = true;
scheduler.config.prevent_cache = true;
…
scheduler.init('scheduler_here', new Date(), "timeline");
scheduler.setLoadMode("month");
scheduler.load("calendar/data", "json");
var dp = new dataProcessor("calendar/data");
dp.setTransactionMode("REST");
// dp.enableDebug();
dp.init(scheduler, null, “timeline”);
I am using JSONSchedulerConnector for server-side.
public function data(){
$connector = new JSONSchedulerConnector(null, "PHPLaravel");
$connector->event->attach("beforeProcessing",Array($this,"delete_related"));
$connector->event->attach("afterProcessing",Array($this,"insert_related"));
$connector->render_table(new Assignment(),"id","start_date,end_date,project_name,description,type,.......,rec_type,rec_pattern,event_pid,event_length","","");
}
Request: localhost/calendar/data?timeshif … 2017-04-30
Response:
0:{id: 21, start_date: “2017-04-10 09:00:00”, end_date: “2017-04-10 18:00:00”, text: “tz1”,…}
1:{id: 22, start_date: “2017-04-10 09:00:00”, end_date: “2017-04-16 18:00:00”, text: “tz2”,…}
2:{id: 24, start_date: “2017-09-11 06:00:00”, end_date: “2017-09-15 15:00:00”, text: “far”,…}
3:{id: 25, start_date: “2016-11-07 08:00:00”, end_date: “2016-11-10 15:00:00”, text: “back”,…}
4:{id: 26, start_date: “2017-04-10 06:00:00”, end_date: “2017-04-14 15:00:00”, text: “qw”,…}
As you can see i get events that are not in the request time-frame. Also I get this response every time i hit next or previous month. These are all the events in my table. DB “start-date/end-date” format: 2017-04-10 09:00:00. I guess I could filter them server side based on the “from”/“to” request, but the docs say: “If you are using dhtmlxConnector at the server side, you don’t need to do any additional server-side operations to parse the data.”.
4th post…hoping for the best!!!
Thank you!