Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions docs-aspnet/html-helpers/scheduling/calendar/disabled-dates.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,17 @@ When you set an array, list the days that will be disabled by using the first le
```
{% endif %}

To apply a new filter or update an existing after initialisation use setOptions

```HtmlHelper
<script>
var calendar = $('#calendar').data('kendoDatePicker');
var options = calendar.options;
options.disableDates = ["mo", "sa"]; // Filters Monday & Saturday
calendar.setOptions(options);
</script>
```

## Adding a Function

When you add a function, determine its return value as `true` for the date that is disabled.
Expand Down
4 changes: 2 additions & 2 deletions docs/api/javascript/ui/datepicker.md
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,7 @@ The following settings are available for the **start** value:
## Fields

### options `Object`
An object, which holds the options of the widget. The options object holds all available [DatPicker configuration fields](/api/javascript/ui/datepicker#configuration).
An object, which holds the options of the widget. The options object holds all available [DatePicker configuration fields](/api/javascript/ui/datepicker#configuration).

#### Example - get options of the widget

Expand Down Expand Up @@ -1017,7 +1017,7 @@ Opens the calendar.

### setOptions

Changes the initial DatePicker configuration by updating the options object. The options object holds all available [DatPicker configuration fields](/api/javascript/ui/datepicker#configuration).
Changes the initial DatePicker configuration by updating the options object. The options object holds all available [DatePicker configuration fields](/api/javascript/ui/datepicker#configuration).

#### Parameters

Expand Down