Accessing Panes

2 posts, 0 answers
  1. David Beck
    David Beck avatar
    38 posts
    Member since:
    Jun 2010

    Posted 12 May 2010 Link to this post

    Hello i am trying to execute this sample code but keep getting an error

    <input type="button" value="LEFT PANE" onclick="LoadExternalContent('','RightPane');" /> 
    <script type="text/javascript" language="javascript">  
                function LoadExternalContent(url, targetPaneID) {  
                    //obtain reference to the parent page             
                    //var splitterPageWnd = window.parent;  
                    //call a method from the parent page-->  
                    var splitterObject = GetMainSplitter();  
                    var splitter = $find("MainSplitter");  
                    var _pane = splitter.GetPaneByID("LeftPane");  
                    var pane = splitterObject.GetPaneById("LeftPane");  
                    if (!pane) return;  

    I get an Error stating that Splitter doesnt have the property GetPaneById

    Any Ideas?
  2. Petio Petkov
    Petio Petkov avatar
    825 posts

    Posted 14 May 2010 Link to this post

    Hi Loren Dorez,

    You should use GetPaneById instead GetPaneByID method.
    for example:
    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
    <head id="Head1" runat="server">
        <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <script type="text/javascript">
            function LoadExternalContent(url)
                var splitter = $find("<%=RadSplitter1.ClientID %>");
                var pane = splitter.GetPaneById("RadPane3");
        <input type="button" value="SetURL" onclick="LoadExternalContent('')" />
        <telerik:RadSplitter ID="RadSplitter1" runat="server">
            <telerik:RadPane ID="RadPane1" runat="server"  Width="22">
                <telerik:RadSlidingZone ID="RadSlidingZone1" runat="server" Width="22" ClickToOpen="true">
                    <telerik:RadSlidingPane ID="RadSlidingPane1" Title="RadSlidingPane1" runat="server" Width="190" MinWidth="120">
            <telerik:RadPane ID="RadPane2" runat="server"></telerik:RadPane>
            <telerik:RadSplitBar ID="RadSplitBar1" runat="server"></telerik:RadSplitBar>
            <telerik:RadPane ID="RadPane3" runat="server"></telerik:RadPane>
    Let us know if you have any other questions.

    All the best,
    Petio Petkov
    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