Hello
I am using dhtmlxscheduler. I have given the lightbox on create condition as true.
My requirement is to prevent the lightbox entry on saturday and sunday so that i can’t create event on sat and sun.
For that i have checked the getDay() method for values 0 and 6.
Please tell me the attachEvent condition such that i can check my requirement and proceed. I have used ‘onBeforelightbox’ condition, in that case its okay for sat and sun but lightbox is not displayed for weekdays too. so please tell me your suggestion.
Thank You
Vineetha
Hello,
You can try to use the following approach
scheduler.attachEvent(“onBeforeLightbox”,function(id){
var ev = this.getEvent(id);
var date = ev.start_date;
return (date.getDay()&&date.getDay()!=6)
})