New to Telerik UI for ASP.NET Core? Download free 30-day trial
Change Working Days
Loading Demo...
- EXAMPLE
- VIEW SOURCE
-
EDIT IN TELERIK REPL
-
Change Theme
default
- Main
- Main Dark
- Nordic
- Ocean Blue
- Purple
- Turquoise
- Main
- Main Dark
- Nordic
- Urban
- Vintage
- Main
- Arctic
- Lime Dark
- Main Dark
- Nova
- Main
- Main Dark
- Opal
- Silver
HtmlHelper
TagHelper
change_working_days.cshtml
Change_Working_DaysController.cs
change_working_days_TagHelper.cshtml
Also available for:
CLIENT-SIDE API SERVER-SIDE APIDescription
You can change the working days of the week by using the WorkDays method.
The days to set are index based and the WorkDays method accepts an int[]
as argument.
In this example new int[] { 1,3,4 }
sets Monday, Wednesday and Thursday as working days of the week.
You can set the WorkDays method to the Scheduler to set the working days for all Views. Or you can set it through the configuration of an individual View.