I have Kendo UI modal window opened and I want to close it by clicking on overlay. How can I do that?
Try something like this:
var dialog = $("#dialog2").kendoWindow({
modal: true
}).data("kendoWindow").center();
$(document).on("click", ".k-overlay", function () {
dialog.close();
});
(demo)