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

Open Parent Windows Reload

3 Answers 113 Views
Window
This is a migrated thread and some comments may be shown as answers.
Rahul
Top achievements
Rank 1
Rahul asked on 16 Sep 2009, 07:57 AM
Hello i hv following application

One Rad grid (Main Page Parent Page  ) It contains the ADD Cart Button .....When i click on that open the Cart Windows
 

<telerik:RadWindow ID="RadWndCart" runat="server" Modal="false" VisibleStatusbar="False"
                Behavior="Move,Minimize"  Skin="Black" Title="Cart" Top="150px" Left="250px" Width="620px"
                 NavigateUrl="ProposalCart.aspx"  Height="483px">
            </telerik:RadWindow>

The Cart windows contains the Create Button When i click on this Open the one form in same windows using following code, It contains creat project button when i click execute the follwoing script and open the page same child window,

  function OpenResult()
               {

                   var oWnd = radopen ("CreateProjectResult.aspx","RadWndCart");
                   return false;

            }

It will open the result windows On that one button i want refresh the Parent (Main Page) .........
for example
the Result page grid contains
ABC
PQR
ABCD

Above are the link button
when click
function RefreshParentPage()
            {
           GetRadWindow().BrowserWindow.location.href = GetRadWindow().BrowserWindow.location.href;

            }

but not open the parent main page it open the second Proposal cart page , i dont want this Reload the main parent page

when i click on the above ABC opens the ABC Page information.

How to navigate the on main page from Child -- Child Window to Parent

ITs Urgent very urgent

3 Answers, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 18 Sep 2009, 03:36 PM
Hi Rahul,

If I understand your scenario you have the following setup :
- Main window (browser's window)
     - A RadWindow with name WindowA that is child of the browser's window
          - A RadWindow with name WindowB that is child of the WindowA

And you need to refresh the browser window from the WindowB.
If I am correct you can use this script on the content page opened inside the WindowB :

function refreshBrowserWindow() 
    var browserWindow = GetRadWindow().BroserWindow.GetRadWindow().BrowserWinsdow; 
    browserWindow.location.href = browserWindow.location.href; 

Please note that the GetRadWindow() function should be declared on every page that is opened inside a RadWindow.

I hope this helps.

Sincerely yours,
Fiko
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Ganesh Kumar Sathiyamoorthy
Top achievements
Rank 1
answered on 03 May 2010, 04:13 AM
Hi Fiko,

I have the same problem. In your example how can I reload or refresh Window A on close of Window B.

Rajesh
0
Georgi Tunev
Telerik team
answered on 03 May 2010, 01:00 PM
Hello Rajesh,

I attached a small sample that shows how to do that in Fiko's setup. I hope this helps.


Sincerely yours,
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.
Tags
Window
Asked by
Rahul
Top achievements
Rank 1
Answers by
Fiko
Telerik team
Ganesh Kumar Sathiyamoorthy
Top achievements
Rank 1
Georgi Tunev
Telerik team
Share this question
or