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

Master Conent Content

2 Answers 92 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Jim Gru
Top achievements
Rank 1
Jim Gru asked on 21 Apr 2010, 05:17 PM
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
        RadSplitter
               RadPane
                    Content Page    
                            RadTree

I can go up the train through javascripts, but I cannot go back down the train using javascript. 

2 Answers, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 22 Apr 2010, 03:26 PM
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());
    }
</script>
</telerik:RadScriptBlock>

 
Sincerely yours,
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.
0
Jim Gru
Top achievements
Rank 1
answered on 22 Apr 2010, 05:38 PM
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.
Tags
Splitter
Asked by
Jim Gru
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Jim Gru
Top achievements
Rank 1
Share this question
or