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