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

Open the parent windows with new aspx page

3 Answers 92 Views
Window
This is a migrated thread and some comments may be shown as answers.
Rahul
Top achievements
Rank 1
Rahul asked on 10 Sep 2009, 09:06 AM
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

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 10 Sep 2009, 10:25 AM
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.
0
Rahul
Top achievements
Rank 1
answered on 10 Sep 2009, 12:56 PM
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

0
Casey
Top achievements
Rank 1
answered on 10 Sep 2009, 07:51 PM

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
Tags
Window
Asked by
Rahul
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Rahul
Top achievements
Rank 1
Casey
Top achievements
Rank 1
Share this question
or