Wybrana data kalendarza Kendo
Witam Mam kalendarz kendo i pole tekstowe na mojej stronie. Kiedy wybieram dowolną datę w kalendarzu, chciałem pokazać tę wartość w moim polu tekstowym. (jak selektor datetime). Jakikolwiek sposób, aby to uzyskać?
Oto mój przykładowy kod
<div id="calendar"></div>
<input type="text" name="txtdate" id="txtdate"/>
<script>
$(document).ready(function() {
// create Calendar from div HTML element
$("#calendar").kendoCalendar();
});
var cal = $("#calendar").data("kendoCalendar");
cal.bind("change", function () {
// Here I wanted to bind the selected value to my text box (txtdate).
});
</script>