2 posts, 1 answers
  1. Christian Pardun
    Christian Pardun avatar
    112 posts
    Member since:
    May 2010

    Posted 04 Oct 2010 Link to this post

    Dear Telerik-Team

    I add a RadWindowManager and a RadWIndow to my page. I set via javascript the target for the RadWindow. The RadWIndow open up with the target dir. Everything as aspected! But how can I access controls in the RadWIndow from the page with open up the RadWindow. If I use the the RadWindow with a content template there isn't a probelm but with a navigation url I don't find the way to access something in the RadWIndow.

    Thanks for your help.
  2. Answer
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 04 Oct 2010 Link to this post

    Hi Christian,

    By obtaining a reference to a RadWindow component, you can call any function that is defined in that windows content window or can access the control placed in teh content window.

    Just use the contentWindow property to reference the Content Window of the RadWindow component:

    Here is sample code where the Label is placed inside the content widnow and I'm calling the function from main page.

    <script type="text/javascript">
        function changeText() {
            var oWnd = GetRadWindowManager().getWindowByName("UserListDialog");
            var lbl = oWnd.get_contentFrame().contentWindow.document.getElementById('Label1');
            lbl.innerText = "clear";

    More information will be available in the documentation:

  3. DevCraft R3 2016 release webinar banner
Back to Top