I have a radwindow manager in a control added to the master page. After that I place another radwindow in the page I am working on (a page that uses the master page): Default.aspx.
In this new rad window manager (RadWindowManagerSearch) I have 3 rad windows: one that I open from this page and the other two that will open as popups from the first popup window.
Basically, I want to open a search window and from that one be able to open different windows. From these last windows I want to return data to the first window. When clicking a button in the first button I want to return data to the initial page (Default.aspx).
To open the first popup window (RadWindowSearch) from Default.aspx page I used:
var managerC = $find("<%= RadWindowManagerSearch.ClientID %>"); |
managerC.open("search.aspx", "RadWindowSearch"); |
Then I opened a second popup window from the first one and when returning the values, tried to find the first popup window with:
GetRadWindow().get_windowManager().getWindowByName("RadWindowSearch"); |
It didn't work (returns null) beacuse it was finding as radwindow manager the first one rendered in the page (the one in the control in the master page) instead of the radwindow manager in Default.aspx
To solve this I removed the radwindowmanager (and kept the radwindows) from Default.aspx and now open the first popup with:
var oWnd = radopen("search.aspx", "RadWindowSearch"); |
And to open other popups from RadWindowSearch:
var parentPage = GetRadWindow().BrowserWindow; |
var parentRadWindowManager = parentPage.GetRadWindowManager(); |
var oWnd2 = parentRadWindowManager.open("clients_filter.aspx", "RadWindowSearchClients"); |
window.setTimeout(function() { |
oWnd2.setActive(true); |
}, 0); |
Now I can return data from second popups to first popup (RadWindowSearch) by using the previous line:
GetRadWindow().get_windowManager().getWindowByName("RadWindowSearch"); |
However, now I can't return data from the first popup (RadWindowSearch) to Default.aspx because it doesn't execute the OnClientClose function. This function was fired when using a radwindomanager in Default.aspx.
How can I now return data from the first popup to the page?
Or, how can I keep the radwindowmanager in Default.aspx and make the second popups find the first one (RadWindowSearch)? Is there a way to do get_windowManager() but by name?
Thank you,