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

Undock a sliding pane without having it collapse

1 Answer 51 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Sylvain
Top achievements
Rank 1
Sylvain asked on 02 Sep 2010, 11:32 PM
Is there a way to prevent a sliding pane from collapsing when it's undocked? I'd like to be able to undock an expanded sliding pane and have it stay where it's at, however I can't find an easy way to achieve that. Any suggestions?
Thanks!

1 Answer, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 08 Sep 2010, 08:11 AM
Hi Sylvain,

I already answered your support ticket on the subject. For convenience I will paste my answer here as well:

By design, when a sliding pane is docked it is collapsed. In order to expand it when undocking you need to attach handler to the OnClientBeforeUndock client-side event of the sliding pane and expand it using the sliding zone's expandPane() method, e.g.:
<telerik:radsplitter ID="RadSplitter1" runat="server">
    <telerik:RadPane ID="RadPane1" runat="server">
        <telerik:RadSlidingZone ID="RadSlidingZone1" runat="server" ClickToOpen="true" SlideDuration="0">
            <telerik:RadSlidingPane ID="RadSlidingPane1" runat="server" OnClientBeforeUndock="OnClientBeforeUndock"></telerik:RadSlidingPane>
        </telerik:RadSlidingZone>
    </telerik:RadPane>
</telerik:radsplitter>
 
<script type="text/javascript">
    function OnClientBeforeUndock(sender, args)
    {
        var slidingZone = $find("<%=RadSlidingZone1.ClientID%>");//get reference to the sliding zone
         
        setTimeout(function ()//set timeout to ensure that the calcualtions are finished
        {
            slidingZone.expandPane(sender.get_id());//expand undocking pane
        }, 0);
    }
</script>

Please let us know if this helps.


Best wishes,
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
Tags
Splitter
Asked by
Sylvain
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Share this question
or