open pages in same radwindow

4 posts, 0 answers
  1. dany7487
    dany7487 avatar
    88 posts
    Member since:
    Jan 2008

    Posted 23 Jul 2009 Link to this post

    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.
  2. Cary
    Cary avatar
    18 posts
    Member since:
    Feb 2008

    Posted 24 Jul 2009 Link to this post

    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(); 
            } 

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. dany7487
    dany7487 avatar
    88 posts
    Member since:
    Jan 2008

    Posted 24 Jul 2009 Link to this post

    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.

  5. dany7487
    dany7487 avatar
    88 posts
    Member since:
    Jan 2008

    Posted 24 Jul 2009 Link to this post

    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.

Back to Top