Hello
I want to keep the rad window in the center of the screen even when the user scrolls the page. Problem is that on a page with scroll when the user scrolls the page the window is not moving with the scroll.
Here is my code
script type="text/javascript"> function mb_wysiwyg_ReloadParent_OpenRadWindow(url, reloadPageOnClose, width, height) { var wysiwyg_oWnd = GetRadWindowManager().open(url, null); // open window with the reuired parameters. var wysiwyg_WindowWidth = width; var wysiwyg_WindowHeight = height; if (window.screen.availHeight < 920) wysiwyg_WindowHeight = window.screen.availHeight - 200; wysiwyg_oWnd.setSize(wysiwyg_WindowWidth, wysiwyg_WindowHeight); wysiwyg_oWnd.set_modal(true); // open window in center of screen. wysiwyg_oWnd.center(); //wysiwyg_oWnd.maximize() // add the close event on window close. if (reloadPageOnClose) { wysiwyg_oWnd.add_close(mb_wysiwyg_RefreshPageOnWindowClose); } return false; } </script> <telerik:RadScriptManager ID="mgr" runat="server"></telerik:RadScriptManager> <telerik:RadWindowManager ID="WinManager" runat="server"></telerik:RadWindowManager> <asp:button ID="Open" runat="server" Text="Open" OnClientClick="mb_wysiwyg_ReloadParent_OpenRadWindow('http://www.google.com',false,500,500); return false;" />