I have found that if I use the Resize action method, I don' t have to use $(document).ready():
.Events(actions => actions.Resize(handler: "resizeWindow"))
this.kendoWindow = this.reportWindow.data("kendoWindow");
var parentHeight = this.reportViewerFrameContainer.parents('.k-content').height(); var titleBarHeight = this.reportViewerFrameContainer.find('.k-window-titlebar').outerHeight();
height: parentHeight - titleBarHeight - this.windowPaddingBottom
However, the window first appears and then resizes. Though it is a split second, it is kind of annoying. I have tried adding Visible: false to the Kendo().Window() setup and then adding visible: true to the setOptions, but that doesn't work. I've tried calling open(), I've tried calling attr('style', 'visible:inline-block;'), all kinds of things, but nothing I've tried will make the window visible if it is initially not visible, and I haven't found a way to hide it while it is being resized.
So I have two questions: is using Resize() just as good as using $(document).ready()? And how can I resize without the resizing being visible?