This is a migrated thread and some comments may be shown as answers.

Is it possible for RadWindow to open another Window?

1 Answer 64 Views
Window
This is a migrated thread and some comments may be shown as answers.
Delicious!
Top achievements
Rank 1
Delicious! asked on 25 Feb 2009, 07:24 PM
Is it possible?  For example,  the page iFrameModalDemo.aspx is the parent page that loads Default.aspx.  Is it possible for Default.aspx to open another RadWindow?  W/ the markup below...when Default.aspx is loaded into a RadWindow and its buttons are clicked, a postback occurs instead of opening a RadWindow.

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="iFrameModalDemo.aspx.cs" Inherits="iFrameModalDemo" %> 
 
<!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>Untitled Page</title>     
</head> 
<body> 
    <form id="form1" runat="server">     
    <rad:RadWindowManager runat="server"
        <Windows> 
            <rad:RadWindow runat="server" Behavior="Default" InitialBehavior="None" Left=""  
                NavigateUrl="http://www.telerik.com" style="display:none;" Title="Window"  
                Top="" OpenerElementID="btnTelerik"
            </rad:RadWindow> 
            <rad:RadWindow ID="rwDialog" runat="server" Behavior="Default"  
                InitialBehavior="None" Left="" Modal="True" NavigateUrl="Default.aspx" 
                style="display:none;" Top="" OpenerElementID="btnDialog"
            </rad:RadWindow> 
        </Windows> 
    </rad:RadWindowManager> 
    <asp:Button ID="btnTelerik" runat="server" Text="Telerik" /> 
    <asp:Button ID="btnDialog" runat="server" Text="Dialog" /> 
    </form>         
</body> 
</html> 
 

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Default" %>  
  
<!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>Untitled Page</title>      
</head>  
<body>  
    <form id="form1" runat="server">      
    <rad:RadWindowManager runat="server">  
        <Windows>  
            <rad:RadWindow runat="server" Behavior="Default" InitialBehavior="None" Left=""   
                NavigateUrl="http://www.telerik.com" style="display:none;" Title="Window"   
                Top="" OpenerElementID="btnTelerik">  
            </rad:RadWindow>  
            <rad:RadWindow ID="rwDialog" runat="server" Behavior="Default"   
                InitialBehavior="None" Left="" Modal="True" NavigateUrl="Default.aspx"  
                style="display:none;" Top="" OpenerElementID="btnDialog">  
            </rad:RadWindow>  
        </Windows>  
    </rad:RadWindowManager>  
    <asp:Button ID="btnTelerik" runat="server" Text="Telerik" />  
    <asp:Button ID="btnDialog" runat="server" Text="Dialog" />  
    </form>          
</body>  
</html>  

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 26 Feb 2009, 01:50 PM
Hi Ohrange,

Using OpenerElementID in such scenario will not be of help. You need to use RadWindow's client-side API and open the windows with JavaScript. Please review the following demo and documentation topic for more information:
http://demos.telerik.com/aspnet-ajax/window/examples/dialogreturnvalue/defaultcs.aspx
http://www.telerik.com/help/aspnet-ajax/window_programmingopeningfromwithin.html



Best wishes,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Window
Asked by
Delicious!
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or