This is a migrated thread and some comments may be shown as answers.

Select event for datepicker?

1 Answer 255 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
Benjamin
Top achievements
Rank 1
Benjamin asked on 03 Jun 2014, 08:43 PM
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? 
$("#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?

1 Answer, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 04 Jun 2014, 02:08 PM
Hello Benjamin,

I am afraid that the functionality that you are looking for cannot be achieve with the current implementation of the Kendo UI DatePIcker. I would suggest you to check out UserVoice section, where you can post this as a suggestion, so it will be considered for implementation in a future release.

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Date/Time Pickers
Asked by
Benjamin
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Share this question
or