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

How can i Click Button set Docking Floating to Docked Left ?

3 Answers 53 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Watit
Top achievements
Rank 2
Watit asked on 21 Nov 2012, 07:33 AM
I can only made code set button click Docked to Floating
but i can't mode button click Docking Floating to Docked Left.
have any way to help solution.
Thank You

3 Answers, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 26 Nov 2012, 05:58 AM
Hi Watit,

There is no straightforward solution and it depends on what your are trying to achieve. So if you want to dock it on its previous position you need to remember it and add the pane as a child of the specific PaneGroup. In case where you need to add it where there is no PaneGroup or SplitContainer  new ones need to be generated. In order to specify where the Pane to be dock you can use the InitialPosition property of the SplitContainer.
Hope this will help.


All the best,
Georgi
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Watit
Top achievements
Rank 2
answered on 27 Nov 2012, 02:21 AM
I try to use InitialPosition but not lucky,  erro message aleady element.
radSplitContainer.InitialPosition = Telerik.Windows.Controls.Docking.DockState.DockedLeft
have you demo project for this case?

Thank you very much.
0
Georgi
Telerik team
answered on 29 Nov 2012, 04:16 PM
Hi Watit,

I am attaching a simple project where maximize button is used to maximize the pane and then return it to its original position. Please note that this is a custom made code and it might not work in some other scenarios.
If you have any questions, please don't hesitate to contact us.

Regards,
Georgi
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Docking
Asked by
Watit
Top achievements
Rank 2
Answers by
Georgi
Telerik team
Watit
Top achievements
Rank 2
Share this question
or