• close ()
    Closes the calendar.

    Example

    // get a reference to the datepicker widget
    var datePicker = $("#datePicker").data("kendoDatePicker");
    // close the datepicker
    datePicker.close();
  • enable (enable)
    Enable/Disable the datePicker widget.

    Example

    // get a reference to the datepicker widget
    var datePicker = $("#datePicker").data("kendoDatePicker");
    
    // disables the datePicker
    datePicker.enable(false);
    
    // enables the datePicker
    datePicker.enable(true);

    Parameters

    enable: Boolean
    The argument, which defines whether to enable/disable the datePicker.
  • max (value) : Date
    Gets/Sets the max value of the datePicker.

    Example

    // get a reference to the datepicker widget
    var datePicker = $("#datePicker").data("kendoDatePicker");
    
    // get the max value of the datePicker.
    var max = datePicker.max();
    
    // set the max value of the datePicker.
    datePicker.max(new Date(1900, 0, 1));

    Parameters

    value: Date | String
    The max date to set.
    Returns
    Date The max value of the datePicker.
  • min (value) : Date
    Gets/Sets the min value of the datePicker.

    Example

    // get a reference to the datepicker widget
    var datePicker = $("#datePicker").data("kendoDatePicker");
    
    // get the min value of the datePicker.
    var min = datePicker.min();
    
    // set the min value of the datePicker.
    datePicker.min(new Date(1900, 0, 1));

    Parameters

    value: Date | String
    The min date to set.
    Returns
    Date The min value of the datePicker.
  • open ()
    Opens the calendar.

    Example

    // get a reference to the datepicker widget
    var datePicker = $("#datePicker").data("kendoDatePicker");
    // open the datepicker
    datePicker.open();
  • value (value) : Date
    Gets/Sets the value of the datePicker.

    Example

    // get a reference to the datepicker widget
    var datePicker = $("#datePicker").data("kendoDatePicker");
    
    // get the value of the datePicker.
    var value = datePicker.value();
    
    // set the value of the datePicker.
    datePicker.value("10/10/2000"); //parse "10/10/2000" date and selects it in the calendar.

    Parameters

    value: Date | String
    The value to set.
    Returns
    Date The value of the datePicker.