I raised a ticket on this. It turns out the window product was never finished and you have to create a partial page with the objects in in order to make it work. Something like:
@ModelType MyModel
@Code
ViewData("Title") = "My Homepage"
Html.Kendo.Window().Title("My Window").Name("window").Draggable(False).Scrollable(False).LoadContentFrom("MyPartialPage", "Home", New With {.MyItem = Model}).Render()
End Code
I also chuck this into the layout for to resize the window to fit the browser: (one runs on open, the other on browser resize)
<script type="text/javascript">
document.ready = function (event) {
var kendoWindow = $("#window").data("kendoWindow");
kendoWindow.wrapper.css({
width: document.documentElement.clientWidth - 20,
height: document.documentElement.clientHeight - 20
});
};
window.onresize = function (event) {
var kendoWindow = $("#window").data("kendoWindow");
kendoWindow.wrapper.css({
width: document.documentElement.clientWidth - 20,
height: document.documentElement.clientHeight - 20
});
};
</script>