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

Activating Sliding Pane Programmatically Server-side

2 Answers 118 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Ben Thompson
Top achievements
Rank 1
Ben Thompson asked on 23 Jun 2010, 06:39 AM
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 Answers, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 23 Jun 2010, 12:41 PM
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
0
Ben Thompson
Top achievements
Rank 1
answered on 23 Jun 2010, 04:56 PM
Many thanks Dobromir - most grateful to you. - Ben
Tags
Splitter
Asked by
Ben Thompson
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Ben Thompson
Top achievements
Rank 1
Share this question
or