I\'m using Kendo UI\'s window component, which is similar to any modal dialog.
I have a close button in it, how do I close the window upon clicking that button (instead
In JavaScript - HTML window
is an object that represents an open window in a browser. Try defining your window
as something else.
$(document).ready(function () {
var wnd = $("#window").data("kendoWindow");
$("#open").click(function (e) {
wnd.center();
wnd.open();
});
$("#close").click(function(e) {
wnd.close();
});
});