I have a masterpage with a RadWindowManger on it and a window defined within it.
I have a page (WebForm1), based on that master page that opens a modal window using a locally defined RadWindowManager.
The window that opens from WebForm1.aspx uses another page, WebForm2.aspx for its content.
WenForm2 includes some JavaScript that finds the browser window and calls JavaScript on the master page that opens a 2nd window.
Both the 1st and 2nd windows are opened modally.
When I run the code and open the 2nd window it opens below the 1st window and whilst the modal screen appears.
I want to be able to invoke the 2nd window and have the modal screen cover the 1st screen as well as the base page. I don't want the user to be able to interact with the first window whilst the 2nd is open.
Is this possible?
Below is the code I'm using...
Site1.master
WebForm1.aspx
WebForm2.aspx
I'd be grateful for any clues.
Thanks in advance.
--
Stuart
I have a page (WebForm1), based on that master page that opens a modal window using a locally defined RadWindowManager.
The window that opens from WebForm1.aspx uses another page, WebForm2.aspx for its content.
WenForm2 includes some JavaScript that finds the browser window and calls JavaScript on the master page that opens a 2nd window.
Both the 1st and 2nd windows are opened modally.
When I run the code and open the 2nd window it opens below the 1st window and whilst the modal screen appears.
I want to be able to invoke the 2nd window and have the modal screen cover the 1st screen as well as the base page. I don't want the user to be able to interact with the first window whilst the 2nd is open.
Is this possible?
Below is the code I'm using...
Site1.master
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site1.master.cs" Inherits="TestBed.Site1" %> |
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> |
<!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 runat="server"> |
<title></title> |
<asp:ContentPlaceHolder ID="head" runat="server"> |
</asp:ContentPlaceHolder> |
</head> |
<body> |
<form id="form1" runat="server"> |
<telerik:RadScriptManager ID="RadScriptManager1" runat="server"> |
</telerik:RadScriptManager> |
<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server"> |
<script type="text/javascript"> |
function OpenPopup() { |
var wnd = $find("<%=Popup.ClientID %>"); |
wnd.show(); |
} |
</script> |
</telerik:RadScriptBlock> |
<div> |
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server"> |
</asp:ContentPlaceHolder> |
</div> |
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" Skin="WebBlue"> |
<Windows> |
<telerik:RadWindow ID="Popup" runat="server" |
Animation="None" |
Width="400px" |
Height="400px" |
VisibleStatusbar="false" |
NavigateUrl="http://www.google.com" |
KeepInScreenBounds="true" |
Modal="true"></telerik:RadWindow> |
</Windows> |
</telerik:RadWindowManager> |
</form> |
</body> |
</html> |
WebForm1.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm2.aspx.cs" Inherits="TestBed.WebForm2" %> |
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> |
<!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 runat="server"> |
<title></title> |
</head> |
<body> |
<form id="form1" runat="server"> |
<telerik:RadScriptManager ID="RadScriptManager1" runat="server"> |
</telerik:RadScriptManager> |
<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server"> |
<script type="text/javascript"> |
function GetRadWindow() { |
var oWindow = null; |
if (window.radWindow) |
oWindow = window.radWindow; |
else if (window.frameElement.radWindow) |
oWindow = window.frameElement.radWindow; |
return oWindow; |
} |
function OpenPopup() { |
var wnd = GetRadWindow().BrowserWindow; |
wnd.OpenPopup(); |
} |
</script> |
</telerik:RadScriptBlock> |
<asp:Button runat="server" ID="btn2" Text="Click" OnClientClick="OpenPopup(); return false;" /> |
</form> |
</body> |
</html> |
WebForm2.aspx
<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="TestBed.WebForm1" %> |
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> |
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server"> |
</asp:Content> |
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"> |
<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server"> |
<script type="text/javascript"> |
function Click() { |
radopen(null, 'RadWindow1'); |
} |
</script> |
</telerik:RadScriptBlock> |
<asp:Button ID="btn" runat="server" Text="Click" OnClientClick="Click(); return false;" /> |
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" Skin="WebBlue"> |
<Windows> |
<telerik:RadWindow ID="RadWindow1" runat="server" |
Animation="None" |
Width="600px" |
Height="100px" |
VisibleStatusbar="false" |
Left="50px" |
Top="50px" |
NavigateUrl="WebForm2.aspx" |
KeepInScreenBounds="true" |
Modal="true"> |
</telerik:RadWindow> |
</Windows> |
</telerik:RadWindowManager> |
</asp:Content> |
I'd be grateful for any clues.
Thanks in advance.
--
Stuart