I've a trivial problem with calendar. Once the value is set, the user can't set any other value on the same view. The problem disappear if the user go to the future/past and come back.
Here my implementation, it's quite simple
I've a div with id calendar, on document ready:
<div id="calendar" style="display: none; width: 600px;"></div>
<script>
$(document).ready(function () {
var d = DateStringISO2date($("#string_value").val());
if (d == '') d = new Date();
//d is a valid date, always
$("#calendar").kendoCalendar({
value: d,
depth: "month"
});
...
//next
function calendarSetValue(e)
{
var d = DateStringISO2date($("#string_value").val());
if (d == '') d = new Date();
var calendar = $("#calendar").data("kendoCalendar");
calendar.value(d);
//calendar.navigateDown(calendar.value()); I've tried to navigate to va
}
}
Best regards,
Davide
Here my implementation, it's quite simple
I've a div with id calendar, on document ready:
<div id="calendar" style="display: none; width: 600px;"></div>
<script>
$(document).ready(function () {
var d = DateStringISO2date($("#string_value").val());
if (d == '') d = new Date();
//d is a valid date, always
$("#calendar").kendoCalendar({
value: d,
depth: "month"
});
...
//next
function calendarSetValue(e)
{
var d = DateStringISO2date($("#string_value").val());
if (d == '') d = new Date();
var calendar = $("#calendar").data("kendoCalendar");
calendar.value(d);
//calendar.navigateDown(calendar.value()); I've tried to navigate to va
}
}
Best regards,
Davide