I know this problem has been addressed in several threads but all the solutions are not working for me:
This is my simple code:
The window still show in the center, then load content and become off the screen to the bottom.
What I am doing wrong here?
Thanks.
This is my simple code:
01. $(function () {02. var window = $("#popup").kendoWindow({03. animation: {04. open: {05. effects: { fadeIn: {} },06. duration: 200,07. show: true08. },09. close: {10. effects: { fadeOut: {} },11. duration: 600,12. hide: true13. }14. },15. visible: false,16. title: "Create ...",17. modal: true,18. close: function () {},19. 20. }).data("kendoWindow");21. 22. window.bind("refresh", function() {23. window.center();24. window.open();25. });26. });27. function createNewNotam() {28. 29. var model = @Html.Raw(Json.Encode(subjectModel))30. 31. $("#NSDEditor-Popup").data("kendoWindow")32. .content("")33. .refresh({34. url: "../Dashboard/Create",35. type: "POST",36. data: model37. });38.}The window still show in the center, then load content and become off the screen to the bottom.
What I am doing wrong here?
Thanks.
