I am trying to load a page using AJAX, then display that page in a kendo window when a button is clicked. However, the center() and open() functions do not work as the object is undefined. When omitting 'content' from the declaration the window shows ok. There is a div in the html with an id "window".
<script type="text/javascript"> $(document).ready(function () { var window = $("#window"); if (!window.data("kendoWindow")) { window.kendoWindow({ actions: ["Refresh", "Maximize", "Minimize", "Close"], content: "/ReportType/Create", title: "Create a New ReportType", modal: true, visible: false }); } }); $("#createButton").click(function () { var window = $("#window").data("kendoWindow"); window.center(); window.open(); });