Open the parent windows with new aspx page

4 posts, 0 answers
  1. Rahul
    Rahul avatar
    142 posts
    Member since:
    May 2009

    Posted 10 Sep 2009 Link to this post

    I watn functionality like this

    i hv one form contain one button on that button click the radwindow open ,,,,In that window it contains some link button , i need to open the that page in to Parent window screen not in Inside the radwindow ........when it open the page it will minimize the radwindow on minimize zone



    Is this possible ? how to open the new form in parent window screen on clicking of radwindow(child window) button click .   

    Urgent reply please

    thanks
    regards
    rahul
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 10 Sep 2009 Link to this post

    Hi Rahul,

    There are two ways to accomplish this:

    • Obtain a reference to the parent window, and call radopen from there.
    • Obtain a reference to the RadWindowManager, which is on the parent window, and use its open method.

    Checkout the following documentation which describes these approaches:
    Opening a RadWindow from Within a RadWindow

    -Shinu.
  3. Rahul
    Rahul avatar
    142 posts
    Member since:
    May 2009

    Posted 10 Sep 2009 Link to this post

    Thank shinu for reply dear

    Actully i was tried for this but it give error Object reference... See dear what i want

    For Example
    My Parent web page is like shopping web if i select item then it will open rad window within the parent page (Its name is ADD Cart) It will collects information related to the select items. ......When i choose the any the selected list field if i select some product , then it wills shows the all information related to that product in parent window......  How to oepn the Product information page from child window ?


    If any sample code please give  me

    its very urgent sir

    Thanks

  4. Casey
    Casey avatar
    299 posts
    Member since:
    Jul 2009

    Posted 10 Sep 2009 Link to this post

    Hi Rahul,

    In my page I open a RadWindow from the parent page, then open a new RadWindow from a button on the first RadWindow, but the parent is the parent of the first RadWindow. I achieved this by using the below code:

    Javascript:

    function GetRadWindow() {  
                var oWindow = null;  
                if (window.radWindow) oWindow = window.radWindow;  
                else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;  
                return oWindow;  
    }  
     
    function OnClientClick_Button() {     
                var oWindow = GetRadWindow().BrowserWindow;     
                oWindow.radopen("RadWindow1.aspx""RadWindow");     
            }  
     
     
     
       
     

    Button:

    <asp:LinkButton ID="LinkButton1" runat="server" OnClientClick="OnClientClick_Button()">LinkButton</asp:LinkButton> 

    I believe you could try the below to minimize the first RadWindow in the function that is fired after the button click.

    var oWnd = GetRadWindow();  
    oWnd.Minimize(); 

    Hope this helps!
    Casey
Back to Top