navigate to a different page on closing the radwindow

3 posts, 0 answers
  1. Anumeha
    Anumeha avatar
    36 posts
    Member since:
    Aug 2010

    Posted 10 Nov 2010 Link to this post

    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. Anumeha
    Anumeha avatar
    36 posts
    Member since:
    Aug 2010

    Posted 10 Nov 2010 Link to this post

    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.
  3. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 16 Nov 2010 Link to this post

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