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

Recursive docking

2 Answers 77 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 06 Dec 2011, 05:53 PM
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 Answers, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 08 Dec 2011, 10:08 AM
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 >>
0
Andrew
Top achievements
Rank 1
answered on 12 Dec 2011, 05:04 PM
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

Tags
Docking
Asked by
Andrew
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Andrew
Top achievements
Rank 1
Share this question
or