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

[Solved] Problem with Refreshing the Parent

1 Answer 136 Views
Window
This is a migrated thread and some comments may be shown as answers.
Mark Rowe
Top achievements
Rank 1
Mark Rowe asked on 15 Oct 2007, 06:22 PM
Hey,

I've been trying to get the parent to refresh on a window close.  The javascript function does not seem to be firing when I close the window, even those I have the following code:

Since there is little documentation, I used the code examples from the Radwindow for ASP.NET.

function OnClientClose(oWnd)  
            {  
                var oWnd = GetRadWindow().BrowserWindow;     
                oWnd.location.href = oWnd.location.href;   
            } 


Next, I'm using the OnClientClose event on the Window:

   <telerik:RadWindowManager ID="PopupManager" runat="server" Height="500px" Width="800px">  
            <Windows> 
                <telerik:RadWindow ID="Popup" runat="server" Style="display: none;" Behavior="Default" 
                    OnClientClose="OnClientClose" Height="600px" IntialBehavior="None" Width="800px">  
                </telerik:RadWindow> 
            </Windows> 
        </telerik:RadWindowManager> 

Any idea of what I'm doing wrong?  I must admit, I'm not well versed in the previous version of the Radwindow to know if I'm making a mistake of if it is a bug.

Thanks!
Bob


1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 16 Oct 2007, 06:15 AM
Hi Bob,

Since your OnClientClose function is in the same page that you wish to refresh, you can simply call
function OnClientClose(oWnd)  
    {  
        window.location.href = window.location.href;   
    }
 


GetRadWindow().BrowserWindow returns a reference to the parent page's document and is used to call pre-defined functions on the parent page from within the content page (that is displayed in RadWindow). It also requires the GetRadWindow() function to be present on the content page.




Sincerely yours,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Window
Asked by
Mark Rowe
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or