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

Maintain RadPaneGroup

1 Answer 23 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Kawika
Top achievements
Rank 1
Kawika asked on 14 Aug 2013, 10:53 PM
I have one RadDocking in my UserControl that contains two RadSplitContainers. I am trying to find a way to make it so that the panes from either of the SplitContainers cannot go into the other, but can be moved within their own container (they are also allowed to float).

I had found one solution in the forums, but it didn't really make sense to me. I am looking for a smaller solution with just two SplitContainers and maybe a little explanation as to how it works like that.

Any help is appreciated, thank you.

1 Answer, 1 is accepted

Sort by
0
Accepted
Vladi
Telerik team
answered on 15 Aug 2013, 10:48 AM
Hi Kawika,

In order to create a conditional docking in the RadDocking control you will need to customize the way the docking compasses are shown. Yo can do that by handling the PreviewShowCompass event of the control which is fired when a Pane is made floating and the compasses needs to be shown. You can check our online demo that shows how to customize the showing of the compasses, and this help article for more details.

I created a sample project for you that shows a possible approach of achieving the desired behavior. In the example I have added some comments on specific important parts in the code, hope this is helpful. In the sample project the "Green" Panes can be docked only inside other Panes of the same type and the "Purple" Panes can be docked inside and on the top, bottom, left or right sides of other Panes of the same type.

Regards,
Vladi
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
Docking
Asked by
Kawika
Top achievements
Rank 1
Answers by
Vladi
Telerik team
Share this question
or