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

How to Dock a sliding pane by default?

2 Answers 80 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Ken
Top achievements
Rank 1
Ken asked on 31 Oct 2011, 07:00 PM
I'm using the radsplitter with two sliding panes.

I'd like to open and dock one of the panes automatically when the page loads so that it shows docked by default.

I cannot find any samples on how to do this. Please advise.

Thank you.

2 Answers, 1 is accepted

Sort by
0
Ken
Top achievements
Rank 1
answered on 31 Oct 2011, 07:31 PM
Here is the answer: 

Set this on Page_Load:  
Radslidingzone2.ExpandedPaneId = "Radslidingpane4";
Radslidingzone2.DockedPaneId = "Radslidingpane4";

Would be much easier the the pane just had a Docked property that you could set to T/F.
0
Dobromir
Telerik team
answered on 01 Nov 2011, 04:49 PM
Hi Ken,

By design, only a single pane can be Expanded / Docked , If the pane contains a Docked / Expanded property this should allow multiple sliding panes to have it set. Having this property to the sliding zone avoid such misunderstandings.

In addition, expanding and docking are self excluding operations when applied to a single sliding pane, i.e. docked pane is not expanded and vise versa - in case of multiple sliding panes, you can have one pane docked and another pane expanded. Thus if you want the pane to be docked you need to set a pane to be Docked when the page is loaded you need to set DockedPaneId property.

Kind regards,
Dobromir
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Splitter
Asked by
Ken
Top achievements
Rank 1
Answers by
Ken
Top achievements
Rank 1
Dobromir
Telerik team
Share this question
or