Issue: Defaulting Scheduler to Day View and Current Date

Hello – I seem to have an issue whereby the Scheduler doesn’t have awareness of the current date when the control is defaulted to display in the DAY view.

Here’s how I’m initializing the control:

<script src="/js/dhtmlxscheduler_mobile.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="/css/dhtmlxscheduler_mobile.css">
<script type="text/javascript" charset="utf-8">
	scheduler.config.readonly = true;
	scheduler.config.header_date = "%m/%d/%Y";
	scheduler.config.item_date = "%m/%d/%Y";
	scheduler.config.scale_hour = "%h %a";
	dhx.ready(function(){
    	dhx.ui({
			view: "scheduler",
			id: "scheduler"
		});
		$$("scheduler").load("http://<?php echo $api_url; ?>","json");
		$$("scheduler").$$("calendar").define("startOnMonday",false);
      $$("scheduler").$$("day").show();
      $$("scheduler").$$("buttons").setValue("day");
	});
</script>

When the control loads, the DAY view comes up. However the events shown on the view are incorrect. They are a mishmash of the month’s events, not the ones scheduled for the current date. It isn’t until I hit the “Today” button in the lower left corner that the correct events are displayed. Is there some parameter I need to set in order to force the view’s context to today’s date?

Also, a second issue – From the DAY view when I get the correct event to display and I click into it, I see the details as expected. Then, when I click “Back” in the upper left to return to the DAY view, it actually bypasses the DAY view and goes to the LIST view.

Thanks for your help.

Hello,

today is the default scheduler date. We have not reproduced both issues. I’ve attached the complete demo
scheduler.zip (66.6 KB)