Hierarchical Modal Dialogs

2 posts, 0 answers
  1. CabinetZulian
    CabinetZulian avatar
    12 posts
    Member since:
    Apr 2007

    Posted 26 Mar 2009 Link to this post


    Is there any possibility to show a modal dialog "A", then show a modal chid dialog "B", etc. ?

    Currently, "A" is OK but "B" is not modal in respect of "A".

    Best regards,

    Florian DREVET
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 27 Mar 2009 Link to this post

    Hello Florian,

    Try the following approach for setting the second window as Modal.

    Parent Page:-
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server">  
        <telerik:RadWindow Modal="true" runat="server" NavigateUrl="Dialog1.aspx" ID="Window1" Width="500" Height="300" OpenerElementID="Button1" ></telerik:RadWindow> 
    <input id="Button1" type="button" value="Open Window" /> 

    Dialog window1 (A):-
    <input id="Button1" type="button" value="button"  onclick="openWindow2();"/> 

    <script type="text/javascript">  
    function openWindow2()  
        var oBrowserWnd = GetRadWindow().BrowserWindow;  
        var oWnd = oBrowserWnd.radopen("http://www.google.com""NewWindow"); 
        oWnd.set_modal(true);  // Setting the second RadWindow as modal  
    function GetRadWindow()  
      var oWindow = null;  
      if (window.radWindow)  
         oWindow = window.radWindow;  
      else if (window.frameElement.radWindow)  
         oWindow = window.frameElement.radWindow;  
      return oWindow;  
    Opening a RadWindow from Within a RadWindow
    RadWindow Methods

Back to Top