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

Disabled Dates

The DatePicker allows you to disable specific days which are not intended to be selected by the end user such as weekends and national holidays.

To disable a date in the DatePicker, use either of the following approaches:

For a complete example, refer to the demo on disabling dates in the DatePicker.

Setting the Weekdays

To disable dates by setting the days of the week, list the names of days that will be disabled.

Razor
    @(Html.Kendo().DatePicker()
        .Name("weekend-date-picker")
        .DisableDates(DayOfWeek.Saturday, DayOfWeek.Sunday)
    )

Adding a Function

To disable dates through using a function, set the return value for the date that will be disabled to true.

Razor
    @(Html.Kendo().DatePicker()
        .Name("national-date-picker")
        .DisableDates("disableDates")
    )

See Also

In this article
Setting the WeekdaysAdding a FunctionSee Also
Not finding the help you need?
Contact Support