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

2 posts, 0 answers
  1. Stephan
    Stephan avatar
    71 posts
    Member since:
    Jul 2007

    Posted 29 Oct 2009 Link to this post

    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?

  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 30 Oct 2009 Link to this post

    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:

  3. DevCraft R3 2016 release webinar banner
Back to Top