I'm using VS2010 .Net 4.0 and VB. I downloaded a small project I found on here that is supposed to demonstrate how to launch a radWindow so that it doesn't get stuck in the opening frame. It was called Frameset.zip. It was in C# but since there wasn't any server code converting it to VB was no big deal. Bottom line is it doesn't work. Every time I push the button to launch the radWindow I get the error:
Microsoft JScript runtime error: Object doesn't support this property or method
on the line:
top.radopen("http://www.google.com", "RadWindow1")
If I move:
<telerik:RadScriptManager ID="ScriptManager1" runat="server" ScriptMode="Release" />
<telerik:RadWindowManager Modal="true" ID="Singleton" runat="server">
</telerik:RadWindowManager>
to frame1.aspx and change it to use window.radopen, the radWindow launches fine but it's stuck in the frame.
Here are my pages:
Default.aspx
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
<
html
xmlns
=
"http://www.w3.org/1999/xhtml"
>
<
head
id
=
"Head1"
runat
=
"server"
>
<
title
>Untitled Page</
title
>
</
head
>
<
frameset
border
=
"0"
cols
=
"200,*"
frameborder
=
"0"
>
<
body
>
<
telerik:RadScriptManager
ID
=
"ScriptManager1"
runat
=
"server"
ScriptMode
=
"Release"
/>
<
telerik:RadWindowManager
Modal
=
"true"
ID
=
"Singleton"
runat
=
"server"
>
</
telerik:RadWindowManager
>
<
frame
name
=
"contents"
src
=
"Frame1.aspx"
>
<
frame
name
=
"main"
src
=
"Frame2.aspx"
>
</
body
>
</
frameset
>
</
body
>
</
html
>
Frame1.aspx
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Frame1.aspx.vb" Inherits="Frame1" %>
<
html
xmlns
=
"http://www.w3.org/1999/xhtml"
>
<
head
id
=
"Head1"
runat
=
"server"
>
<
title
>Untitled Page</
title
>
</
head
>
<
body
>
<
form
id
=
"form1"
runat
=
"server"
>
<
div
>
<
script
type
=
"text/javascript"
>
function OpenWin() {
top.radopen("http://www.google.com", "RadWindow1");
}
</
script
>
<
input
type
=
"button"
onclick
=
"OpenWin()"
value
=
"Open RadWindow"
/>
</
div
>
</
form
>
</
body
>
</
html
>
frame2.aspx
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Frame2.aspx.vb" Inherits="Frame2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html
xmlns
=
"http://www.w3.org/1999/xhtml"
>
<
head
id
=
"Head1"
runat
=
"server"
>
<
title
>Untitled Page</
title
>
</
head
>
<
body
>
<
form
id
=
"form1"
runat
=
"server"
>
<
div
>
Frame 2
</
div
>
</
form
>
</
body
>
</
html
>