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

Change Dock position in codebehind

1 Answer 164 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Akram
Top achievements
Rank 1
Akram asked on 01 Jun 2013, 08:09 PM
Hi Telerik,

Can i change the Dock position of RadPane in code behind? now i can do that using mouse drag and drop

Thanks,
Akram

1 Answer, 1 is accepted

Sort by
0
Vladi
Telerik team
answered on 06 Jun 2013, 08:00 AM
Hello,

In order to change the docked position of a RadPane you will need to:
  • Create a new RadSplitContainer and set its InitialPosition
  • Create a new PaneGroup and add it to the SplitContainer's Items
  • Remove the Pane from its current PaneGroup and add it to the newly created PaneGroup
  • Add the newly created SplitContainer to the Docking control's Items.

I created and attached sample project for you with the described approach, hope this is helpful.


Regards,
Vladi
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Docking
Asked by
Akram
Top achievements
Rank 1
Answers by
Vladi
Telerik team
Share this question
or