var dialog = $("#dialog2").kendoWindow({ modal: true }).data("kendoWindow").center(); $(document).on("click",".k-overlay",function () { dialog.close(); });
(demo)