addMarkedTimespan in a treeviewed timeline

Hi,

I have a few question about addMarkedTimespan in a treeviewed timeline.
I’m using 3 timelines in the scheduler one for the days, an other for the weeks and the last for the months.
On each timeline view my Y_axis is organised on a 3 leveled treeview :
Project/Task/Contributor.
I use the following code to implement Marked Timespan :

scheduler.config.mark_now = true; // Invoke the Now red line 
// In order to block the saturday and sunday
scheduler.addMarkedTimespan({  
                            days:  [0,6], 
                            zones: "fullday",      
                            css:   "grey_section",
                            type: "dhx_time_block",
                            html: "<span>WE</span>"
});
.grey_section {
    background-color: lightgrey;
    opacity: 0.25;
    filter: alpha(opacity = 25);
}
  1. Is there a way to set the “scheduler.config.mark_now = true;” to the begining of the day at 00:00 without caring about the hour?

  2. The grey displayed on the scheduler is the default grey of dhx_time_block. But i can’t find how to use the grey_section i just defined in the CSS.

  3. Is there a way to display the Now red line and the addMarkedTimespan only on the last level of my treeview? (i look at the example http://docs.dhtmlx.com/scheduler/samples/09_api/04_highlighted_sections_units.html it looks like i have to create another view (unit) to handle this behaviour but it looks pretty heavy i wonder if there is an shorter way)

Thanks

Ok for the 3rd question i found the way.
The sections property is waiting for the section key (Y axis section).

scheduler.addMarkedTimespan({  
                            days:  [0,6], 
                            zones: "fullday",    
                            type: "dhx_time_block",  
                            css:   "grey_section",
                            html: "<span>WE</span>",
                            sections: {
					                  jour: ["MYLINE4KEY","MYLINE10KEY"]
                            }
});

Hi,

  1. No, mark_now always uses current time. You can disable it and set marker manually when page starts

[code]var today = scheduler.date.day_start(new Date());

scheduler.addMarkedTimespan({
start_date:today,
end_date: scheduler.date.add(today, 5, ‘minute’),
css: “dhx_now_time dhx_matrix_now_time”
});[/code]
2) Css parameter should work, check this example (orange timespan in ‘Linda Brown’ section)
docs.dhtmlx.com/scheduler/sample … units.html

Thank a lot for mark_now trick.
I allways have issues with my CSS grey_section. But I’ll search a little more.
Thanks again.