Recursive docking

3 posts, 0 answers
  1. Andrew
    Andrew avatar
    29 posts
    Member since:
    Oct 2010

    Posted 06 Dec 2011 Link to this post

    Hi,

    I am just wondering if it is possible to dock controls recursively (well, I only need two levels)? Basically, top-level controls should be placed as tabs; inside each tab, there should be a regular RadSplitContainer. Controls should be draggable between top-level containers; also, it should be possible to create a new top-level group (tab) by dragging a control.

    This code comes very close to what I have in mind but it looks like you don't support that scenario yet (it is easy to crash this app and also layout serialization doesn't work):

    Thanks!
    -Andrew

    <telerik:RadDocking  Grid.Row="1" x:Name="radDocking" Background="White">
        <telerik:RadDocking.DocumentHost>
            <telerik:RadPaneGroup TabStripPlacement="Top" x:Name="radPaneGroup" >
                <telerik:RadDocumentPane Header="Welcome">
                    <telerik:RadSplitContainer>
                        <telerik:RadSplitContainer Orientation="Vertical">
                            <telerik:RadPaneGroup x:Name="rpgGrid" >
                                <telerik:RadPane>
                                    <TextBlock>Viewer 1</TextBlock>
                                </telerik:RadPane>
                            </telerik:RadPaneGroup>
                            <telerik:RadPaneGroup >
                                <telerik:RadPane>
                                    <TextBlock>Viewer 2</TextBlock>
                                </telerik:RadPane>
                            </telerik:RadPaneGroup>
                            <telerik:RadPaneGroup >
                                <telerik:RadPane Title="Viewer 3">
                                    <TextBlock>Viewer 3</TextBlock>
                                </telerik:RadPane>
                            </telerik:RadPaneGroup>
                        </telerik:RadSplitContainer>
                        <telerik:RadSplitContainer Orientation="Vertical" InitialPosition="DockedLeft">
                            <telerik:RadSplitContainer Orientation="Horizontal">
                                <telerik:RadPaneGroup >
                                    <telerik:RadPane>
                                        <TextBlock>Viewer 4</TextBlock>
                                    </telerik:RadPane>
                                </telerik:RadPaneGroup>
                                <telerik:RadPaneGroup >
                                    <telerik:RadPane Title="Viewer 5">
                                        <TextBlock>Viewer 5</TextBlock>
                                    </telerik:RadPane>
                                </telerik:RadPaneGroup>
                            </telerik:RadSplitContainer>
                            <telerik:RadPaneGroup >
                                <telerik:RadPane>
                                    <TextBlock>Viewer 6</TextBlock>
                                </telerik:RadPane>
                            </telerik:RadPaneGroup>
                        </telerik:RadSplitContainer>
                    </telerik:RadSplitContainer>
                    </telerik:RadDocumentPane>
            </telerik:RadPaneGroup>
     
        </telerik:RadDocking.DocumentHost>
    </telerik:RadDocking>
  2. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 08 Dec 2011 Link to this post

    Hi Andrew,

    I am sorry, but this scenario is not supported indeed. We have logged it as a feature request in our PITS. You can view it here. However, you can try putting this layout in a TabControl. It should work as expected.

    Hope this helps.

    All the best,
    Konstantina
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
  3. DevCraft banner
  4. Andrew
    Andrew avatar
    29 posts
    Member since:
    Oct 2010

    Posted 12 Dec 2011 Link to this post

    Konstantina,

    Thanks for the answer! I hope this feature will get implemented in the future, it seems like many people are interested in it.

    TabControl lacks many feature (for instance, you can't position top-level controls) and is not integrated with the docking (we want to be able to create top-level tabs by just dragging controls there), so it's not a viable option for us.

    Regards,
    Andrew

Back to Top