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

How to reference an object in a child window from the parent window

1 Answer 144 Views
Window
This is a migrated thread and some comments may be shown as answers.
Stephan
Top achievements
Rank 1
Stephan asked on 29 Oct 2009, 03:14 PM
Hi, I have a radwindow which has some client functions to change the look of a childwindow which is popuped up after clicking a button in the previous mentioned parent window. In this parent window I have a clientside function which adds a help-icon to the titlebar of the child window, and also a function which shows an alert when the user clicks on the help-icon.

Furthermore the child window contains a RadTreeView. Now I want to retreive the value of the current selected node in the child window and show the value in the function which is triggered for the help in the parent window. How can I reference the RadTreeview selected node in this help-function of the parent?

TIA

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 30 Oct 2009, 07:36 AM
Hi Stephen,

You an call the function that is defined in window's content window by obtaining a reference to a RadWindow component. Use the contentWindow property to reference the Content Window of the RadWindow component. In the event handler, get the values of currently selected nodes and return the value t parent page where the function is called.
Checkout the following documentation for more information on calling functions in windows:
Calling Functions in Windows

Also checkout the documentation for important client side methods of RaTreeView:
RadTreeView

-Shinu.
Tags
Window
Asked by
Stephan
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or