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

Opening a popup from another popup not working

3 Answers 125 Views
Window
This is a migrated thread and some comments may be shown as answers.
Brendan Vogt
Top achievements
Rank 1
Brendan Vogt asked on 03 Oct 2008, 06:36 AM
Hi,

I am trying to open a window from a popup window.  But the window just opens up inside the other window.  What am I doing wrong wrong?

The first window is opened up like this:

<radW:RadWindowManager ID="rwm" runat="server">
  <Windows>
    <radW:RadWindow
      ID="rwCISLookup"
      Behavior="Close"
      Modal="true"
      Height="230px"
      Width="560px"
      runat="server" />
  </Windows>
</radW:RadWindowManager>

When I click on the wondow submit button, it opens the window inside this window.  I want this second window to be in front of the first window.

This is how the second window is called:

<radW:RadWindowManager ID="rwm" runat="server">
  <Windows>
    <radW:RadWindow
      ID="rwCISResults"
      Modal="true"
      Height="430px"
      OpenerElementId="<%# btnSearch.ClientID %>"
      OffsetElementId="<%# btnSearch.ClientID %>"
      Width="1000px"
      NavigateUrl="CISResults.aspx"
      runat="server" />
  </Windows>
</radW:RadWindowManager>

This needs to be done server side because I need to set a session variable in the first window.

Please can someone help?

Thanks
Brendan

3 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 06 Oct 2008, 08:55 AM
Hi Brendan,

I believe that the following KB will be of help:
http://www.telerik.com/support/kb/article/b454K-ggk-b454T-cec-b454c-cec.aspx



Kind regards,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Brendan Vogt
Top achievements
Rank 1
answered on 07 Oct 2008, 09:53 AM
This needs to be done server side because I need to set a session variable in the first window.  Javascript is not going to work.
0
Georgi Tunev
Telerik team
answered on 08 Oct 2008, 12:07 PM
Hi Brendan,

Like the standard popup, RadWindows are called and handled on the client only. If you want to open a RadWindow from within another one, you will have to output from the server a JavaScript code that would do that with the approach described in the KB article.



Sincerely yours,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Window
Asked by
Brendan Vogt
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Brendan Vogt
Top achievements
Rank 1
Share this question
or