Kendo Window
by lhoeppner
HTML
<script src="http://cdn.kendostatic.com/2013.3.1119/js/kendo.all.min.js"></script>
<script src="http://cdn.kendostatic.com/2013.3.1119/js/kendo.aspnetmvc.js"></script>
<link rel="stylesheet" href="http://cdn.kendostatic.com/2013.3.1119/styles/kendo.common.min.css">
<link rel="stylesheet" href="http://cdn.kendostatic.com/2013.3.1119/styles/kendo.default.min.css">
<link rel="stylesheet" href="http://cdn.kendostatic.com/2013.3.1119/styles/kendo.mobile.all.min.css">
<div id='window1'>
Some window content.
<span id="button2" class="k-button">Say hello</span>
</div>
<span id="button1" class="k-button">Open Window</span>
JavaScript
window1 = $('#window1');
window1.hide();
$('#button1').click(function() {
if (!window1.data("kendoWindow")) {
window1.kendoWindow({
width: "300px",
close: function (e) {
$(this.element).empty();
}
});
}
window1.show();
window1.data("kendoWindow").open();
});
$(document).on("click", "#button2", function() {
alert("hello!");
});