Open New Radwindow from Parent Window

5 posts, 0 answers
  1. sudhakar
    sudhakar avatar
    35 posts
    Member since:
    Jul 2010

    Posted 21 Sep 2010 Link to this post

    Hello All,

    Can anyone help me to solve this problem.

    1) I have a normal IE window, when i click on button, it should open a completely new Radwindow and close the parent window. 
         Currently its opening in same window.

    2) From Child window, hope it can open popups and should not be a problem.

    Any solution will be really appreciated.

    Regards
    Sudhakar
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 21 Sep 2010 Link to this post

    Hello,


    The following documentation shows how to open the radwindow from another window.
    Opening a RadWindow from Within a RadWindow


    I hope this will be helpful for you.


    -Shinu.
  3. sudhakar
    sudhakar avatar
    35 posts
    Member since:
    Jul 2010

    Posted 21 Sep 2010 Link to this post


    Hello,

    I already tried this but seems not working. Below are the concerns:

    1) The window is normal IE browser window, but the article says Radwindow to be opened from Rad window. Please confirm meaning the  window shoud be RAD window?

    2)  I have used both the codes, but seems doesnt work and giev javascript error . Correct teh below code if its wrong soemwhere.

    Any further solution will be appreciated.

    Regards
    Sudhakar

    function GetRadWindow() {
                    var oWindow = null;
                    if (window.radWindow)
                        oWindow = window.radWindow;
                    else if (window.frameElement.radWindow)
                        oWindow = window.frameElement.radWindow;
                    return oWindow;
                
      
    function winOpen() {
    var oBrowserWnd = GetRadWindow().BrowserWindow;
    oBrowserWnd.radopen("http://www.google.com", "LoginPage"); 
    }
      
    <asp:Button ID="Button1" runat="server" OnClientClick="winOpen();" Text="Open RadWindow" />
      
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server" VisibleStatusbar="false" >
            <Windows>
                <telerik:RadWindow ID="LoginPage" runat="server" Title="Login Page">
                </telerik:RadWindow>
            </Windows>
            </telerik:RadWindowManager>
  4. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 21 Sep 2010 Link to this post

    Hello sudhakar,

    If I understand you correctly, you want to achieve the following:
    1. Open a browser page with a button on it.
    2. When you click that button, you want to open a RadWindow and close the browser's page.
    If this is so, such functionality is not possible - RadWindow exists only in the context of the page in which it is created. It cannot be used as a standalone popup (i.e. as a replacement of the main browser window).

    Regards,
    Georgi Tunev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. sudhakar
    sudhakar avatar
    35 posts
    Member since:
    Jul 2010

    Posted 22 Sep 2010 Link to this post

    Hello Georgi,

    Thankyou for the updated information.

    Regards
    Sudhakar
Back to Top