Kendo UI Window to center after a refresh of large content

PORKED

New Member
Using \[code\]MVC 4\[/code\] I add a \[code\]blank window\[/code\] and hide it. On a button click I call this javascript to get content and \[code\]center\[/code\] the window:\[code\] var win = $("#myWindow").data("kendoWindow"); win.content("Loading..."); win.refresh({ url: "@Url.Action("MyAction", "MyController")", data: { userloginid: "AAA" } }); win.center(); win.open();\[/code\]The content is \[code\]larger than a default window\[/code\] so the \[code\]win.center()\[/code\] calculation is off, putting the window too far down.How do I get the window to center based on the content it got via the refresh() command.
 
Back
Top