start and end date of the each week in month in kendo
by manoj
HTML
<script src="http://cdn.kendostatic.com/2013.1.319/js/jquery.min.js"></script>
<script src="http://cdn.kendostatic.com/2013.1.319/js/kendo.all.min.js"></script>
<link rel="stylesheet" href="http://cdn.kendostatic.com/2013.1.319/styles/kendo.common.min.css">
<link rel="stylesheet" href="http://cdn.kendostatic.com/2013.1.319/styles/kendo.default.min.css">
<div><button id="button" class="k-button">Tell me</button></div>
<div id="cal"></div>
<pre id="output"></pre>
CSS
#output {
border: 3px groove red;
min-height: 90px
}
JavaScript
var cal = $("#cal").kendoCalendar({}).data("kendoCalendar");
$("#button").on("click", function () {
var pre = $("#output");
pre.text("");
$("tbody > tr", cal._table).each(function(idx, elem) {
pre.append($("td:first", elem).text() + "," + $("td:last", elem).text() + "\n");
})
})