Maintain RadPaneGroup

2 posts, 1 answers
  1. Kawika
    Kawika avatar
    3 posts
    Member since:
    May 2013

    Posted 14 Aug 2013 Link to this post

    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.
  2. Answer
    Vladi
    Admin
    Vladi avatar
    744 posts

    Posted 15 Aug 2013 Link to this post

    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 >>
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top