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

Refresh the main page when close a radwindow

1 Answer 86 Views
Window
This is a migrated thread and some comments may be shown as answers.
Shu Luo
Top achievements
Rank 1
Shu Luo asked on 04 Aug 2009, 08:32 AM
I have a page(page1.aspx) with a grid and a button on it.
When I click the button,I open a radwindow(page2.aspx).
My question is how to refresh page1 when page2 is closed?
There is a close button on page2.

Thanks very much!

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 04 Aug 2009, 09:30 AM
Hi Shu Luo,

Attach OnClientClose event to RadWindow so that you can reload the page in event handler which will fire when closing the RadWindow.

Page1.aspx:
 
 
<telerik:RadWindowManager ID="RadWindowManager1" runat="server"
    <Windows> 
        <telerik:RadWindow runat="server" OnClientClose="OnClientClose" NavigateUrl="" OpenerElementID="Button1"
        </telerik:RadWindow> 
    </Windows> 
</telerik:RadWindowManager> 
<asp:Button ID="Button1" runat="server" Text="Button" /> 

JavaScript:
 
<script type="text/javascript"
function OnClientClose() 
    window.location.reload( true ); 
</script> 

-Shinu.
Tags
Window
Asked by
Shu Luo
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or