New to Telerik UI for ASP.NET CoreStart a free 30-day trial

Disabled Dates

Updated over 6 months ago

The MultiViewCalendar allows you to disable certain days which are not intended to be selected by the end user such as weekends, national holidays, and others.

To disable a date, either set an array or add a function.

Setting an Array

When you set an array, list the days that need to be disabled by using the first letters from their names in English.

Razor
    @(Html.Kendo().MultiViewCalendar()
        .Name("MultiViewCalendar")
        .DisableDates(new[] {"we", "th" })
    )

Adding a Function

When you add a function, determine its return value as true for the date that is disabled.

Razor
    @(Html.Kendo().MultiViewCalendar()
        .Name("MultiViewCalendar")
        .DisableDates("handler")
    )

See Also