For the other views like the MonthView hiding days is not recommended because unexpected behavior might occur. That being said I recommend you to subscribe to the Add event of the Scheduler. In its handler you can check if the new event is during a weekend and prevent its addition:
.Events(e=>e.Add("onAdd"))
functiononAdd(e){
var endDay = kendo.toString(e.event.end, "dddd");
var startDay = kendo.toString(e.event.start, "dddd")
if(endDay=="Sunday"||startDay=="Sunday"||endDay=="Saturday"||startDay=="Saturday"){
e.preventDefault();
alert("Weekends are non-work days for our organization.")
}
}
For your convenience I have added this Telerik REPL that showcases the behavior of the snippet above.
Please give the approach a try and let me know how it works on your side. Thank you.
Regards,
Stoyan
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.
Indeed, I can confirm that the shared CSS selectors are valid ones, as I further performed examinations in the previously provided example by my colleague and it is successfully hiding the weekend columns in the calendar view.
Thank you for sharing this with the community. We really appreciate your contribution.