Master Conent Content

3 posts, 0 answers
  1. Jim Gru
    Jim Gru avatar
    2 posts
    Member since:
    Apr 2010

    Posted 21 Apr 2010 Link to this post

    I have a master page which has navigation menu, content place holder and a radwindowmanager.  In my content page I have a radsplitter, from a page loaded into a pane I am able to execute a javascript that launches a rad window on the masterpage, when this window closes I need to execute a script on the original (pane content) page.  I cannot get the radsplitter using $find("<% =radsplitter.clientid %>" from the masterpage, the object only exists inside the content place holder.  I need the rad spliter to get the pane to get the iframe of the panes contenturl so that I can fire a java script that will then either reload the rad tree so new records or reload the rad tree runing a records search.

    Master Page
        Content Page
                        Content Page    

    I can go up the train through javascripts, but I cannot go back down the train using javascript. 
  2. Dobromir
    Dobromir avatar
    1633 posts

    Posted 22 Apr 2010 Link to this post

    Hi Jim,

    Please note that this problem is not directly related to the RadControls but is a general ASP.NET knowledge. When using a MasterPage the scope differs from the standard web page. In order to get a reference to an item from within the content place holder you need to access it as a child to that content place holder, e.g.:
    <telerik:RadScriptBlock runat="server" ID="RadScriptBlock1">
    <script type="text/javascript">
       function pageLoad()
            alert($find('<%= this.ContentPlaceHolder1.FindControl("RadSplitter1").ClientID %>').get_id());

    Sincerely yours,
    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. Telerik UI for ASP.NET Core is out
  4. Jim Gru
    Jim Gru avatar
    2 posts
    Member since:
    Apr 2010

    Posted 22 Apr 2010 Link to this post

    Thank you that worked perfectly.  I knew it was my lack of understand and not the Telerik Controls, I just could not find anywhere in the forums or help site any answer to this issue.
Back to Top