Centers the Window within the viewport.
If the Window has no set dimensions and is centered before its content is loaded with Ajax, it might resize after the content is loaded. This will change the position of the widget on the screen and it will no longer be centered. If you need to center the Window, then either center it in its refresh event or set explicit dimensions.
kendo.ui.Window - Returns the Window object to support chaining. For example, center and open the Window with a single expression.
<div id="dialog"></div> <script> $("#dialog").kendoWindow(); var dialog = $("#dialog").data("kendoWindow"); dialog.center(); // chaining example // dialog.center().open(); </script>