Example of Hide Non-Working Days in ASP.NET MVC Scheduler Control
This demo depicts the way to show or hide the weekend days of a week on Schedule. The days whichever not specified in working days collections will be taken into consideration as weekend days.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
Non-Working days
|
In this demo, the
ShowWeekend
property is used either to show or hide the weekend days of a week and it is not applicable on
WorkWeek
view. By default, it is set to
true
. The days which are not a part of the working days collection of a Scheduler are usually considered as weekend days
here.
Here, the working days are defined as
[1, 3, 4, 5]
on Schedule. Therefore, the remaining days (0, 2, 6 - Sunday, Tuesday and Saturday) are considered as weekend days
and will be hidden from the views as the
ShowWeekend
property is set to false.