New to Kendo UI for jQueryStart a free 30-day trial

SetOptions

methods

Changes the initial DatePicker configuration by updating the options object. The options object holds all available DatePicker configuration fields.

Value Behavior

When setOptions is called, the value resolution follows a priority order:

  • Explicit value in setOptions: If the options parameter contains a value property, this value takes precedence and updates the component's current value.
  • Initial value exists: If the options parameter does not contain a value property, and the component was initialized with a value, the component reverts to the initial value, discarding any user-selected or programmatically set value.
  • No initial value: If the options parameter does not contain a value property, and the component was initialized without a value, the component preserves the current value.
Parameters:optionsObject

The new configuration options.

<input id="datepicker" />
<script>
$("#datepicker").kendoDatePicker({
    min: new Date(2001, 0, 1),
    max: new Date()
});

var datepicker = $("#datepicker").data("kendoDatePicker");

datepicker.setOptions({
    min: new Date(2010, 5, 6)
});
</script>
Not finding the help you need?
Contact Support