Activating Sliding Pane Programmatically Server-side

3 posts, 0 answers
  1. Ben Thompson
    Ben Thompson avatar
    13 posts
    Member since:
    Mar 2006

    Posted 23 Jun 2010 Link to this post

    I have a pretty simple situation where I have the following arrangement:-
    <telerik:RadSplitter ID="Radsplitter1" runat="server"......
        <telerik:RadPane ID="Radpane1" runat="server" .....
            <telerik:RadSlidingZone ID="Radslidingzone1" runat="server" ....
                <telerik:RadSlidingPane ID="rsp1" ...... 
                <telerik:RadSlidingPane ID="rsp2" ...... 
                <telerik:RadSlidingPane ID="rsp3" ...... 

    All I want to do is to be able to programmatically, on the server side, make the contents on the "rsp2" to be selected and visible to the user. Is it possible or can it only be activated/selected by the user?
     
  2. Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 23 Jun 2010 Link to this post

    Hi Ben,

    In order to expand sliding pane server-side you need to set the ExpandedPaneId property of its parent sliding zone to point to the ID of the required pane, e.g.:
    <telerik:RadSplitter ID="RadSplitter1" runat="server">
        <telerik:RadPane ID="RadPane1" runat="server">
            <telerik:RadSlidingZone ID="RadSlidingZone1" runat="server">
                <telerik:RadSlidingPane ID="RadSlidingPane1" runat="server" Title="SlidingPane1">
                    Pane1
                </telerik:RadSlidingPane>
                <telerik:RadSlidingPane ID="RadSlidingPane2" runat="server" Title="SlidingPane2">
                    Pane2
                </telerik:RadSlidingPane>
                <telerik:RadSlidingPane ID="RadSlidingPane3" runat="server" Title="SlidingPane3">
                    Pane3
                </telerik:RadSlidingPane>
            </telerik:RadSlidingZone>
        </telerik:RadPane>
        <telerik:RadPane ID="RadPane2" runat="server">
        </telerik:RadPane>
    </telerik:RadSplitter>
     
    <asp:Button ID="Button1" Text="Expand Pane2" runat="server" />
    Code-behind:
    protected void Page_Load(object sender, EventArgs e)
    {
        Button1.Click += new EventHandler(Button1_Click);
    }
     
    protected void Button1_Click(object sender, EventArgs e)
    {
        RadSlidingZone1.ExpandedPaneId = RadSlidingPane2.ID;
    }

    I hope this helps.

    Kind regards,
    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Ben Thompson
    Ben Thompson avatar
    13 posts
    Member since:
    Mar 2006

    Posted 23 Jun 2010 Link to this post

    Many thanks Dobromir - most grateful to you. - Ben
Back to Top