Close Window - Navigation to Webpage has been Cancelled

2 posts, 0 answers
  1. HorseFly
    HorseFly avatar
    35 posts
    Member since:
    Aug 2006

    Posted 08 Apr 2010 Link to this post

    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?

     

  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 12 Apr 2010 Link to this post

    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.
Back to Top