This RadWindow example demonstrates a common real-world scenario -
opening ASP.NET dialog from another dialog and ensuring the communication
between them and the parent page.
In this particular example, a new RadWindow is opened from within another RadWindow
in the context of the parent page. To build the
communication between the popups and the parent page, we use RadWindow's client-side
API. The following methods and properties are used:
- BrowserWindow - this property returns a reference to the parent
page from which the RadWindow was opened.
- get_contentFrame() - this method returns a reference to the IFRAME,
in which the content page of the RadWindow
is displayed. To gain access to the content page itself, you need to use its
contentWindow property, e.g.
- When the initial RadWindow is closed, the argument from within it is transferred
to the parent page in the close() function and is read in the
OnClientClose function on the parent page.
You may also find useful the
Creating parent-child relationships between RadWindows and passing data between them
Code Library entry that extends this approach to
use more dialogs through an interface-like collection of common scripts.