Refresh RadWindow from RadWindow

2 posts, 0 answers
  1. Martin
    Martin avatar
    2 posts
    Member since:
    May 2015

    Posted 11 Jul 2017 Link to this post

    Good afternoon,

    In my project I have a main page with 2 RadWindows. The first RadWindow is opened from the main page and the second RadWindow is opened from the first RadWindow. Since the second RadWindow is bigger, I use the RadWindowManager from the main page to open the second RadWindow.

    The first RadWindow contains a RadDropDownList with relation names. In the second RadWindow I can add a relation to the database, but if that Window is closed the RadDropdownList with relation names in the first RadWindow is not updated with the new name.

    In a script on the second RadWindow:

    function GetRadWindow() {
    var oWindow = null;
    if (window.radWindow) oWindow = window.radWindow;
    else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
    return oWindow;
    }

    function RefreshParentPage() {
    GetRadWindow().BrowserWindow.location.reload();
    }

    In my code behind I have:

    Dim script As String = "<script>RefreshParentPage()</" + "script>"
    ScriptManager.RegisterStartupScript(Me, Me.[GetType](), "RefreshParentPage", script, False)

     

    But when calling this script, the first RadWindow is closed, where I want it to be refreshed. I don't know how to reference the first RadWindow from the second.

    How can I refresh the first RadWindow when the second RadWindow is closed?

    Thxs

    Regards,

    Martin

  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    4533 posts

    Posted 13 Jul 2017 Link to this post

    Hi,

    I just answered your support ticket with the same question. For anyone else having a similar situation, here is the answer:

    The following code library sample shows one way to do that: http://www.telerik.com/support/code-library/creating-parent-child-relationships-between-radwindows-and-passing-data-between-them.

    Regards,

    Marin Bratanov
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top