close

Fires when the popup closes

Event Data

e.sender kendo.ui.Popup

The widget instance which fired the event.

Example - subscribe to the "close" event during initialization

<div id="popup">CONTENT</div>
<script>
$("#popup").kendoPopup({
    close: function(e) {
        e.preventDefault(); //prevent popup closing
    }
}).data("kendoPopup").open();
</script>

Example - subscribe to the "close" event after initialization

<div id="popup">CONTENT</div>
<script>
$("#popup").kendoPopup();

var popup = $("#popup").data("kendoPopup");

popup.bind("close", function(e) {
    e.preventDefault(); //prevent popup closing
});

popup.open();
</script>
In this article