Kendo UI DatePicker & KO
A simple Kendo UI DatePicker bound with KnockoutJS
HTML
<script src="http://cdn.kendostatic.com/2011.3.1407/js/kendo.all.min.js"></script>
<link rel="stylesheet" href="http://cdn.kendostatic.com/2011.3.1407/styles/kendo.common.min.css">
<link rel="stylesheet" href="http://cdn.kendostatic.com/2011.3.1407/styles/kendo.default.min.css">
<script src="http://demos.kendoui.com/content/web/integration/knockout-1.2.1.js"></script>
<input id="myDatePicker" data-bind="value: currentDate" />
<h2>Current Date is:<strong data-bind="text: currentDate"></strong></h2>
CSS
body{
font:normal 1em/1.1em Arial,sans-serif;
padding:20px;
}
ol{
list-style:decimal outside none;
margin:5px 30px;
}
h3{
font-size:1.25em;
font-weight:bold;
}
JavaScript
$(function(){
var vm = {
currentDate: ko.observable(new Date())
};
ko.applyBindings(vm);
$("#myDatePicker").kendoDatePicker();
});