Hi,
Since there is no built in way to select multiple dates in one DatePicker, we are building our own with a few modifications to the regular DatePicker (the UserVoice request for what we need is here: http://kendoui-feedback.telerik.com/forums/127393-telerik-kendo-ui-feedback/suggestions/4122749-add-range-select-to-datepicker). One problem we are facing is that we cannot figure out how to modify the "value" displayed in the text input for the DatePicker. After the user selects a 2nd date, we would like to show the range they selected in the input. How can we do this?
Here are some things I have experimented with:
$("#datepicker").kendoDatePicker({
value: new Date(2013, 10, 10),
change: function (e) {
var exampleRangeSelectionText = (new Date("2015-6-6")).toLocaleDateString() + " - " + (new Date("2015-6-8")).toLocaleDateString();
console.log(exampleRangeSelectionText);
//Does NOT work
this.value(exampleRangeSelectionText);
//Does NOT work
//$("#datepicker").attr("value", exampleRangeSelectionText);
}
});