Control Child page inside the radpane from main page

4 posts, 1 answers
  1. WebDeveloper
    WebDeveloper avatar
    10 posts
    Member since:
    Aug 2010

    Posted 16 Sep 2010 Link to this post

    I have a webpage that has a label, radsplitter and radpane, lets call it PageHost. In the radpane I load a page by changing the ContentURL property, lets call this page PageChild.

    If from PageChild inside the radpane, I want to get handle to the label on PageHost, how do I do that?

  2. Answer
    Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 20 Sep 2010 Link to this post

    Hi,

    You can get reference to the PageHost from within the PageChild through window object, e.g.:
    var pageHost = window.parent;

    Then you can call functions registered on PageHost to get reference to the label control.

    More detailed information on the subject is available in the following KB article:
    Referencing content page in a splitter pane from the parent page and vice versa

    Regards,
    Dobromir
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. WebDeveloper
    WebDeveloper avatar
    10 posts
    Member since:
    Aug 2010

    Posted 21 Sep 2010 Link to this post

    This seems to work on client side. How do I get it to work on the serve side. i.e. what would be the equivalent of window.parent on the server side?
  5. Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 23 Sep 2010 Link to this post

    Hi,

    In short, no, you cannot access the parent's page object on the server. This is not a restriction of RadSplitter but a general ASP.NET restriction. When using ContentUrl property to load the content of a RadPane the page is loaded in an <iframe> element.

    All the best,
    Dobromir
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top