Hi,
In dhtmlxscheduler,how to set saturday and sunday with a different background calendar in month view?
Also how to make saturaday and sunday as idle ? so it doesnot allow to create or schedule new appointments
regards
rencin.
In dhtmlxscheduler,how to set saturday and sunday with a different background calendar in month view?
You can style cell in the month view with month_date_class template:
scheduler.templates.month_date_class=function(date,today){
//date - date object corresponded to cell in month view
//today - date object corresponded to the current date
return “some_class”;//function must return name of class which will be set to the cell in month view.
}
You can find working example at your dhtmlxScheduler package dhtmlxScheduler\samples\02_customization\04_month_days_coloring.html
>>Also how to make saturaday and sunday as idle ? so it doesnot allow to create or schedule new appointments
You can use onDblClick and onBeforeDrag event to block events creation at the Saturday and Sunday.
dhtmlx.com/dhxdocs/doku.php?id=d … ler:events
hi,
how to disable saturday and sunday columns so that no new appointment or events could be created on the doubleclick in respective columns? But Monday to friday columns should allow new appointments or event creation on double click .
How to do this?
regards
rencin.
You can just remove those days from the view, if they are not accessible
dhtmlx.com/dhxdocs/doku.php?id=d … stom_views
samples\02_customization\07_custom_view.html