Content url of radpane

3 posts, 0 answers
  1. harika dasari
    harika dasari avatar
    15 posts
    Member since:
    Oct 2009

    Posted 22 Mar 2010 Link to this post

    Hi Telerik,

          I have serious problem.......
    I have used to RadPanes one as header and the other as main pane in which the content gets displayed.
    i have a user control which shows some tabs,this is placed in the header radpane.
    Now on clicking the tabs i need to change the content url of the main content in order to load a different page in it.
    i'am using javascript to get the to get the element id of the pane from the main rad pane in the click event of the tabs of the user control.
    but ia'm unable to change the url of the content pane

    In user control
    the script used to get the contentpane id is


    function GetId()




    var splitterPageWnd = window.parent;



    var splitterObject = splitterPageWnd.GetRadSplitter();






    i'am calling this on the click event of tab.....

    This is the code i have written in the maincontent pane to get the id of the pane


    function GetRadSplitter ()




    return document.getElementById("RadContentPane");




    i'am getting the id but not able to load the content with the page required.....................

    plz help me on this .............................asap...............plzzz

    Thanks in Advance
  2. Dobromir
    Dobromir avatar
    1633 posts

    Posted 24 Mar 2010 Link to this post

    Hi Pushpa,

    In the provided sample code I noticed that you are trying to use a DOM element as a client object. In order to get a reference to the RadPane control you have to use the following code:
    var contentPane = $find("<%=RadContentPane.ClientID%>");

    Also, the method that sets the contentUrl property of RadPane is set_contentUrl().

    Please check the following articles for more information about the Client-Side API of RadSplitter:
    RadSplitter Client-Side Basics
    RadPane Client Object

    Here is an example how to set the content url of a RadPane:
    <telerik:RadSplitter ID="RaDSpliter1" runat="server" Orientation="Horizontal" Width="100%"
        <telerik:RadPane ID="RadPane1" runat="server" Height="200">
            <asp:Button ID="GoogleButton" Text="Open Google" runat="server" OnClientClick="setUrl(''); return false;" />
            <asp:Button ID="MSDNBUtton" Text="Open MSDN" runat="server" OnClientClick="setUrl(''); return false;" />
        <telerik:RadPane ID="RadPane2" runat="server"></telerik:RadPane>
    <script type="text/javascript">
        function setUrl(url)
            var contentPane = $find("<%=RadPane2.ClientID%>");

    I hope this helps.

    Best wishes,
    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. DevCraft R3 2016 release webinar banner
    RAGHUNATH avatar
    2 posts
    Member since:
    Oct 2010

    Posted 13 Aug 2012 Link to this post

    Hi Telerik team,
    I'm setting RadPane's ContentUrl in aspx.cs, but it is not working. Can you please help?
    Version for telerik.Web.UI.dll --> 2010.2.929.20

    Sunny G
Back to Top