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

Refresh RadWindow from RadWindow

1 Answer 151 Views
Window
This is a migrated thread and some comments may be shown as answers.
Martin
Top achievements
Rank 1
Martin asked on 11 Jul 2017, 02:54 PM

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

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 13 Jul 2017, 09:35 AM

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.
Tags
Window
Asked by
Martin
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or