Hi
I have a similar problem that travis had back in Feb 2009.
I use this code in two different places.
| function GetRadWindow() { |
| var oWindow = null; |
| if (window.radWindow) |
| oWindow = window.RadWindow; //Will work in Moz in all cases, including clasic dialog |
| else if (window.frameElement.radWindow) |
| oWindow = window.frameElement.radWindow; //IE (and Moz as well) |
| return oWindow; |
| } |
The first place i used it, it worked fine. The second time it didn't.
The difference between the two are in the first time where it worked, I had set the navigate url of the radwindow set to an .aspx page. As below
<telerik:RadWindow ID="radWindow" Behaviors="None" Width="750px" Height="620px"
VisibleOnPageLoad="false" NavigateUrl="Page.aspx" runat="server" OnClientClose="ClientClose">
</telerik:RadWindow>
In the second instance where it could not find the window and oWindow was coming back null. I had a contenttemplate inside a rad window with a usercontrol sat in the content template. As below
<telerik:RadWindow ID="wnd" runat="server" Behavior="Default" InitialBehavior="None"
Width="255px" Height="450px" Behaviors="None" OnClientClose="ClientClose"
Modal="true" VisibleStatusbar="False">
<ContentTemplate>
<ucl:UserControl ID="UserControl" runat="server" />
</ContentTemplate>
</telerik:RadWindow>
I am not sure where to go from here as there was no helpful reply to travis back in 2009.
Anyone know what to do? And serverside is not really an option here too.
Thanks