[code]// each time before date changes
scheduler.attachEvent(“onBeforeViewChange”, function(old_mode,old_date,mode,date){
// remove previously added markers
scheduler.deleteMarkedTimespan();
// get timerange to be displayed
var from = scheduler.date[mode + "_start"](new Date(date));
var to = scheduler.date.add(from, 1, mode);
// get visible events
var displayEvents = scheduler.getEvent(from, to);
//... use scheduler.addMarkedTimespan to show markers on available times
//...
return true;
});[/code]
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan