multi-day mode in week and day throw error

Hi Team,

I enable “scheduler.config.multi_day = true” in my scheduler.html, but I always got error:

“Line: 2507 Error: ‘this._els.dhx_multi_day.0’ is null or not an object” in function “_pre_render_events”.

In my mind I didn’t change more than below codes:

	scheduler.config.xml_date="%Y-%m-%d %H:%i";
	scheduler.config.lightbox.sections=[	
		{name:"description", height:50, type:"textarea" , map_to:"text", focus:true},			
		{name:"organizer", height:15, type:"textarea", map_to:"organizer" },
		{name:"resources", height:50, type:"textarea", map_to:"resources" },
		{name:"time", height:40, type:"time", map_to:"auto"}
	]
	scheduler.locale.labels.section_resources="Resources";
	scheduler.locale.labels.section_organizer="Organizer";
    scheduler.config.details_on_create=true;
	scheduler.config.details_on_dblclick=true;        
	scheduler.init('scheduler_here',null,"week");
	scheduler.config.server_utc = true;	
	scheduler.config.multi_day = true;
	scheduler.config.readonly_form = false;
	scheduler.config.dblclick_create = true;

Best wishes,

Judo

Move this command before init

scheduler.config.server_utc = true; scheduler.config.multi_day = true; scheduler.init('scheduler_here',null,"week");

Thanks, I saw it work now.