Update leftpane from contentpane

2 posts, 1 answers
  1. juststarting
    juststarting avatar
    18 posts
    Member since:
    Jul 2012

    Posted 30 Dec 2009 Link to this post

    Hi,

    I have a default.aspx page and 3 other pages (left1.aspx, left2.aspx & right.aspx) my default web page is split into 2 (leftpane & contentpane). At the startup left1 is loaded into the leftpane & right into the contentpane. 

    On postback in the contentpane I would like to update the leftpane with left2.aspx?x=1&y=2.

    All help are appreciated.

        <form id="mainForm" method="post" runat="server"
            <telerik:RadScriptManager ID="ScriptManager" runat="server" /> 
             
            <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" > 
                <telerik:RadSplitter ID="RadSplitter2" runat="server" Height="100%" Width="100%" HeightOffset="126"
                    <telerik:RadPane ID="ScreenPane" runat="server" Scrolling="none"
                        <telerik:RadSplitter ID="RadSplitter3" runat="server" LiveResize="true" Orientation="Vertical"
                            <telerik:RadPane ID="LeftPane" runat="server" ContentUrl="Left1.aspx" Width="270px" Scrolling="None"
     
                            </telerik:RadPane> 
                            <telerik:RadSplitBar ID="RadSplitbar1" runat="server" CollapseMode="Forward" EnableResize="true"></telerik:RadSplitBar> 
                            <telerik:RadPane ID="ContentPane" runat="server" ContentUrl="Right.aspx" Width="100%" MinWidth="650">     
     
                            </telerik:RadPane> 
                        </telerik:RadSplitter> 
                    </telerik:RadPane> 
                </telerik:RadSplitter> 
            </telerik:RadAjaxPanel> 
        </form> 
     
    default.aspx


  2. Answer
    juststarting
    juststarting avatar
    18 posts
    Member since:
    Jul 2012

    Posted 31 Dec 2009 Link to this post

    I have found the answer.

    In my default page I added the following javascript:
    <script type="text/javascript"
                    //<![CDATA[
                    var leftpane = null;
                    function reloadLeftPane(navigateUrl) {
                        var splitter = $find("<%= RadSplitter3.ClientID %>");
                        if (navigateUrl && navigateUrl != "#") {
                            leftpane = splitter.getPaneById("<%= LeftPane.ClientID %>");
                            leftpane.set_contentUrl(navigateUrl);
                        }
                    }
                    //]]>                                                                         
                </script> 

    and in the right pane :
    <script type="text/javascript"
        function pageLoad() { 
            window.parent.reloadLeftPane('Left2.aspx'); 
        }  
    </script> 


  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top