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

Redirect to another page.

1 Answer 181 Views
Window
This is a migrated thread and some comments may be shown as answers.
Berkman
Top achievements
Rank 1
Berkman asked on 05 Jul 2013, 09:15 AM
Hi

I am opening a radwindow from my aspx to update some data in the grid. And after updating the radwindow is closed and I need to automatically redirect to anothet page. No cs code is needed.

Thanks for your reply
Berkman

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 05 Jul 2013, 09:44 AM
Hello Berkman,

You can use the OnClientClose event of the control to redirect the browser:
http://demos.telerik.com/aspnet-ajax/window/examples/clientsideevents/defaultcs.aspx
http://www.w3schools.com/jsref/obj_location.asp
<telerik:RadWindow ID="RadWindow1" runat="server" OnClientClose="redirectPage">
</telerik:RadWindow>
function redirectPage()
{
    window.location = "../destinationPage.aspx";//some sample URL
}
Note that this script is in the page where the RadWindow is declared and opened, not in the content page.

Regards,
Marin Bratanov
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Window
Asked by
Berkman
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or