Opening my radwindow with these settings, set in a user control:
<
rad:RadWindowManager
ID
=
"RadWindowManager1"
ShowContentDuringLoad
=
"false"
VisibleStatusbar
=
"false"
ReloadOnShow
=
"true"
runat
=
"server"
>
<
Windows
>
<
rad:RadWindow
ID
=
"radwindowPopup"
runat
=
"server"
VisibleOnPageLoad
=
"true"
Height
=
"280px"
Width
=
"500px"
Modal
=
"true"
Animation
=
"None"
VisibleStatusbar
=
"false"
VisibleTitlebar
=
"true"
Behaviors
=
"Move, Close"
Title
=
""
KeepInScreenBounds
=
"false"
Skin
=
"Default"
>
</
rad:RadWindow
>
</
Windows
>
</
rad:RadWindowManager
>
There is a button on the user control like this to open the window:
<
rad:RadButton
ID
=
"btnUpload"
Text
=
"Go"
Enabled
=
"true"
runat
=
"server"
AutoPostBack
=
"false"
OnClientClicked
=
"btnUpload_Click"
/>
Javascript:
function btnUpload_Click(sender, eventArgs) {
var oWnd = window.radopen(null, "radwindowPopup");
oWnd.set_title("Fooo Barrr");
}
And in the page load of the user control I set the nav URL:
protected void Page_Load(object sender, EventArgs e)
{
radwindowPopup.NavigateUrl = "SomePage.aspx";
}
And the dummy page itself:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FileUpload.aspx.cs" Inherits="MyAgDataWebRole1.UI.FileUpload" %>
<
html
>
<
head
id
=
"Head1"
runat
=
"server"
>
<
title
></
title
>
</
head
>
<
body
class
=
"Popup"
>
<
form
id
=
"Form1"
runat
=
"server"
>
<
div
>
This is a test
</
div
>
</
form
>
</
body
>
</
html
>
The window opens, and the close X button at the top right of the window is visible, but it is always disabled and clicking it does nothing. Also, the handle for dragging the window in the titlebar is only the width of the text in the title, not the 100% width of the titlebar. I tried changing the text to be longer and the handle changes width = text width.
I have opened other RadWindows from server-side and the windows display, drag handle is 100% width of the titlebar and the close X button actually works. Not sure what is going on and any help to make this (simple) task work client-side would be much appreciated. I have at least 8 hours so far sunk into this trying to get your windows to work correctly. TIA.