Hi,
We have an html button on a page, which when pressed launches a RadWindow. If the page containing the html button is not maximized when the button is pressed then only the bottom right corner of the RadWindow is shown in the top left corner of the parent - the top and left of the window are not able to be dragged onto the page - so the window is useless. Unfortunately I cannot attach a picture, but I hope you understand what I mean.
If you maximize the parent window before opening the radwindow, the window opens in the centre and works as expected.
I have tried setting the window to centre, and setting the location with moveTo, but neither works. Please advise how we can overcome this problem.
Thank you
Gillian
Code for the button and the script to create the RadWindow are below
We have an html button on a page, which when pressed launches a RadWindow. If the page containing the html button is not maximized when the button is pressed then only the bottom right corner of the RadWindow is shown in the top left corner of the parent - the top and left of the window are not able to be dragged onto the page - so the window is useless. Unfortunately I cannot attach a picture, but I hope you understand what I mean.
If you maximize the parent window before opening the radwindow, the window opens in the centre and works as expected.
I have tried setting the window to centre, and setting the location with moveTo, but neither works. Please advise how we can overcome this problem.
Thank you
Gillian
Code for the button and the script to create the RadWindow are below
HtmlInputButton partAddButton = new HtmlInputButton(); |
partAddButton.ID = "uiPartAddButton"; |
partAddButton.Value = "Add A Web Part"; |
partAddButton.Attributes.Add("onclick", "openWin_" + this.UniqueID + "(); return false;"); |
partAddButton.RenderControl(writer); |
StringBuilder script = new StringBuilder(); |
script.Append("<script type=\"text/javascript\">"); |
script.Append("function openWin_" + this.UniqueID + "() {"); |
script.Append("var windowMan = GetRadWindowManager();"); |
script.Append("var windowPane = windowMan.GetWindowByName('uiNewPartsWizard');"); |
script.Append("windowPane.SetUrl('PortalWebPartCatalogPage.aspx?ControlID=" + this.UniqueID + "&ZoneId=" + this.currentZone.PortalPageZoneID.ToString() + "&Scope=" + this.WebPartManager.Personalization.Scope.ToString() + "');"); |
script.Append("windowPane.SetTitle('New Web Part Wizard');"); |
script.Append("windowPane.setSize(1000,650);"); |
script.Append("windowPane.Show();}"); |
script.Append("</script>"); |