Hello,
I have a datepicker with a dates array and a content template (not shown). When the date is changed I read a datasource and later open a window with this data. I want to able to open this window for a date every time I select a date from the picker not just when the value is changed via the "Change" event. I know the Kendo datepicker doesn't support a "Select" event like the Kendo Combobox but is there anyway of attaching an event listener to listen for date selection even if it is the same date as already stored in the datepicker?
Also any explanation why the datepicker doesn't support the "Select" event?
I have a datepicker with a dates array and a content template (not shown). When the date is changed I read a datasource and later open a window with this data. I want to able to open this window for a date every time I select a date from the picker not just when the value is changed via the "Change" event. I know the Kendo datepicker doesn't support a "Select" event like the Kendo Combobox but is there anyway of attaching an event listener to listen for date selection even if it is the same date as already stored in the datepicker?
$(
"#datepicker"
).kendoDatePicker({
value: today,
dates: previousEntries,
month: {
content:
''
},
open:
function
(e) {
var
datepicker = $(
"#datepicker"
).data(
"kendoDatePicker"
);
datepicker.dates = previousEntries.slice();
},
change: onDateChange
});
function
onDateChange(e) {
document.getElementById(
"selectedDate"
).value = e.sender.value();
if
(isInArray(e.sender.value(), e.sender.dates)) {
previousEntriesInfoDataSource.read();
}
}
Also any explanation why the datepicker doesn't support the "Select" event?