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

open pages in same radwindow

3 Answers 94 Views
Window
This is a migrated thread and some comments may be shown as answers.
dany7487
Top achievements
Rank 1
dany7487 asked on 23 Jul 2009, 09:49 PM
Hi, Telerik.

Can you tell me how to open several web pages on the same radwindow, please?
I´m using:

<

 

telerik:RadWindowManager ID="RWManager" runat="server" Skin="Yunke" EnableEmbeddedSkins="false" Title="Cargando..." Left="" Top="" Width="" Height=""

 

 

Modal="True" Behavior="Resize, Close, Minimize, Maximize, Move, Reload" VisibleStatusbar="false" ShowContentDuringLoad="true" DestroyOnClose="true">

 

 

<Windows>

 

 

<telerik:RadWindow ID="RWDocumentoInformacion" runat="server" Title="Punto Venta - Yunke" Left="" Top="" Width="700px" Height="450px"

 

 

Modal="True" Behavior="Resize, Close, Minimize, Maximize, Move, Reload" NavigateUrl="" ShowContentDuringLoad="true" />

 

 

 

</Windows>

 

</

 

telerik:RadWindowManager>

 


Every time I need to open a web page I do: 

 

var manager = GetRadWindowManager();

 

 

var oWindow= manager.open(url,"RWDocumentoInformacion");

 


But that is not working for the second time I try to open a page.
I know I can use var oWindow= manager.open(url,null); but then the page will be opened in a new radwindow, and I want it in the same radwindow,

Can you help me?
thanks a lot,
Daniel.

3 Answers, 1 is accepted

Sort by
0
Cary
Top achievements
Rank 2
answered on 24 Jul 2009, 03:13 PM
Hey dany,

on your javascript where you have var oWindow= manager.open(url,null);

Replace null with RWDocumentoInformacion

The second parameter tells it what window to use. I'm guessing they handle null by opening a new window.

This is the actual code I use and it works as you need.

        function openRadWindow() { 
            var oWindow = radopen(Url, "rwNameHere"); 
            //oWindow.Center(); 
            oWindow.Maximize(); 
        } 

0
dany7487
Top achievements
Rank 1
answered on 24 Jul 2009, 04:00 PM

Hi, Cary.

 

The following does not work for me:

var manager = GetRadWindowManager();

 

var oWindow= manager.open(url,"RWDocumentoInformacion");

The situation is:
1. I execute the previous code and the page opens in the radwindow
2. In the page I click on a link to open another page in the same radwindow using the previous code and it does not work.

Can I fix it changing the url of the radwindow??? how?

Any idea?

thanks,

Daniel.

0
dany7487
Top achievements
Rank 1
answered on 24 Jul 2009, 04:16 PM
Hello.

I found the solution asking myself in the last post.

Because I wanted to open a page in the same radwindow from the same radwindow I used:

oWindow.setUrl(url);

and it worked!

thanks!
Daniel.

Tags
Window
Asked by
dany7487
Top achievements
Rank 1
Answers by
Cary
Top achievements
Rank 2
dany7487
Top achievements
Rank 1
Share this question
or