center

Centers the Dialog within the viewport.

Returns

kendo.ui.Dialog - Returns the Dialog object to support chaining.

close

Closes a Dialog.

Returns

kendo.ui.Dialog Returns the dialog object to support chaining.

Example - close a dialog after one second

<div id="dialog"></div>
<script>
$("#dialog").kendoDialog({
  title: "Kendo Dialog Component",
  content: "This is your Kendo Dialog.",
});
var dialog = $("#dialog").data("kendoDialog");
setTimeout(function() {
  dialog.close();
}, 1000);
</script>
In this article