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

navigate to a different page on closing the radwindow

2 Answers 151 Views
Window
This is a migrated thread and some comments may be shown as answers.
Anumeha
Top achievements
Rank 1
Anumeha asked on 11 Nov 2010, 12:45 AM
Hi,

I have a scenario where I have a main form and I load another form from a button on the main form to update something in the database. I then show a popup radwindow from this page to do some additional processing. The radwindow has a save button.

On save I want to close the radwindow and navigate back to the main page instead of going back to the parent window.

So from Page1 I navigate to Page2
show radwindow from Page2
on save on radwindow navigate to Page1 instead of Page2.

Is this possible?

2 Answers, 1 is accepted

Sort by
0
Anumeha
Top achievements
Rank 1
answered on 11 Nov 2010, 01:03 AM
Update: I tried the onClientClose event but that shows the parent page before the user is redirected to the main page. Can the user be directly redirected to the main page without displaying the parent page.
0
Georgi Tunev
Telerik team
answered on 16 Nov 2010, 08:20 AM
Hello Anumeha,

The easiest way to do this is not to close the RadWindow from within the content page, but to directly navigate the parent page to the new one. Since RadWindow exists only in the context of the page it is created in, it will be automatically closed.
e.g.
I assume that in your code, you are calling GetRadWindow().close() to close the RadWindow. Try using
top.location.href = "http://newUrl/newpage.aspx" instead.

Kind regards,
Georgi Tunev
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Window
Asked by
Anumeha
Top achievements
Rank 1
Answers by
Anumeha
Top achievements
Rank 1
Georgi Tunev
Telerik team
Share this question
or