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

Close Window - Navigation to Webpage has been Cancelled

1 Answer 78 Views
Window
This is a migrated thread and some comments may be shown as answers.
HorseFly
Top achievements
Rank 1
HorseFly asked on 08 Apr 2010, 06:49 PM
We have an edit window with an asp:SqlDataSource and FormView.  When we hit save, the SqlDataSource Updated event checks for exceptions, and if there are none, it injects the Close script for the window:

Inject.Text = "<script>CloseMe()</script>";

 

function CloseMe()  
{<br/> 
var oWindow = GetRadWindow();  
oWindow.argument = 1;  
oWindow.close();  

We recently updated the Telerik controls on our development server. 
What happens on development with this code is that the window does close, but not until after it flashes up a page that says "Navigation to the Webpage has been Cancelled".  On our Production server, which hasn't been updated, it doesn't do that. It just shows the loading panel before it closes. 

I have tried just about all I can think of to remedy this on my end.  I believe it is something happening differently with the IFRAME in the RAD Window or the RAD Panel in the most recent update.

Anyone have any suggestions?

 

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 12 Apr 2010, 09:22 AM
Hi,

If you are using ASP.NET AJAX, injecting the script in a Label is not a good approach - more information on the subject is available in this blog post. I would suggest to change the logic and use one of the approaches described in the blog post. If this doesn't help, please open a support ticket and send a sample project where the problem could be reproduced so we could investigate further.

All the best,
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
HorseFly
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or