Nested RadPaneGroup Q1 2010

4 posts, 0 answers
  1. shirley wang
    shirley wang avatar
    28 posts
    Member since:
    Mar 2010

    Posted 21 Apr 2010 Link to this post

    Dear Telerik developer,

    I have a problem with splitcontainer and radpane. My code ist here:

    <UserControl 
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"  
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"  
        xmlns:telerikDocking="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Docking" 
        xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls" 
        xmlns:dock="clr-namespace:Telerik.Windows.Controls.Docking;assembly=Telerik.Windows.Controls.Docking" 
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
        mc:Ignorable="d" 
        x:Class="SampleSplitContainer.MainPage"
        <Grid x:Name="LayoutRoot" Background="White"
            <telerikDocking:RadDocking x:Name="MainDocking"
                <telerikDocking:RadDocking.DocumentHost> 
                    <telerikDocking:RadSplitContainer> 
                        <telerikDocking:RadPaneGroup> 
                            <telerikDocking:RadDocumentPane Header="PaneB"
                                <telerikDocking:RadSplitContainer Orientation="Horizontal" InitialPosition="DockedBottom"
                                    <telerikDocking:RadPaneGroup telerikDocking:ProportionalStackPanel.RelativeSize="100, 100"
                                        <telerikDocking:RadPane Header="PaneB1"></telerikDocking:RadPane> 
                                    </telerikDocking:RadPaneGroup> 
                                    <telerikDocking:RadPaneGroup telerikDocking:ProportionalStackPanel.RelativeSize="100, 100"
                                        <telerikDocking:RadPane Header="PaneB2"></telerikDocking:RadPane> 
                                    </telerikDocking:RadPaneGroup> 
                                </telerikDocking:RadSplitContainer> 
                            </telerikDocking:RadDocumentPane> 
                        </telerikDocking:RadPaneGroup> 
                    </telerikDocking:RadSplitContainer> 
                </telerikDocking:RadDocking.DocumentHost> 
                <telerikDocking:RadSplitContainer Orientation="Horizontal" InitialPosition="DockedTop"
                    <telerikDocking:RadPaneGroup> 
                        <telerikDocking:RadPane Header="PaneA">  
                        </telerikDocking:RadPane> 
                    </telerikDocking:RadPaneGroup> 
                </telerikDocking:RadSplitContainer> 
            </telerikDocking:RadDocking> 
        </Grid> 
    </UserControl> 

    With this code i get a paneA on the top and a paneB on the bottom. There are two pane: paneB1 and paneB2 in paneB. What
    i want to do now is to put paneA next to the paneB. Just like the situation in the following foto. But it is impossible because of the existence of paneB1 and PaneB2. Could you tell me the way to solve this problem?

    Thank you

    Shirley Wang
  2. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 23 Apr 2010 Link to this post

    Hello Shirley,

     If you just need to show PaneA and PaneB next to each other you could use the following XAML:

    <telerikDocking:RadDocking x:Name="MainDocking">
                <telerikDocking:RadDocking.DocumentHost>
                    <telerikDocking:RadSplitContainer>
                        <telerikDocking:RadPaneGroup>
                            <telerikDocking:RadDocumentPane Header="PaneB">
                                <telerikDocking:RadSplitContainer Orientation="Horizontal" InitialPosition="DockedBottom">
                                    <telerikDocking:RadPaneGroup telerikDocking:ProportionalStackPanel.RelativeSize="100, 100">
                                        <telerikDocking:RadPane Header="PaneB1"></telerikDocking:RadPane>
                                    </telerikDocking:RadPaneGroup>
                                    <telerikDocking:RadPaneGroup telerikDocking:ProportionalStackPanel.RelativeSize="100, 100">
                                        <telerikDocking:RadPane Header="PaneB2"></telerikDocking:RadPane>
                                    </telerikDocking:RadPaneGroup>
                                </telerikDocking:RadSplitContainer>
                            </telerikDocking:RadDocumentPane>
                        </telerikDocking:RadPaneGroup>
                    </telerikDocking:RadSplitContainer>
                </telerikDocking:RadDocking.DocumentHost>
                <telerikDocking:RadSplitContainer Orientation="Horizontal" InitialPosition="DockedTop">
                    <telerikDocking:RadPaneGroup>
                        <telerikDocking:RadPane Header="PaneA"
                        </telerikDocking:RadPane>
                    </telerikDocking:RadPaneGroup>
                </telerikDocking:RadSplitContainer>
            </telerikDocking:RadDocking>

    If this is not what you need, please give us some more details about your requirement. If you could provide a screenshot of what you need this would help us a lot.

    All the best,
    Miroslav Nedyalkov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. shirley wang
    shirley wang avatar
    28 posts
    Member since:
    Mar 2010

    Posted 26 Apr 2010 Link to this post

    Dear Miroslav,

    Thank you for you answer. But it is not what i really need. I want to put the pane A next to pane B in runtime.  It is impossible because of the existence of PaneB1 and PaneB2. I mean when i drag Pane A down, i can not really find the compass of Pane B. What i can find are the compasses of PaneB1 and PaneB2. What i can do is to put PaneA IN Pane B, but not NEXT to PaneB.

    yours sincerely
    Shirley
  4. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 27 Apr 2010 Link to this post

    Hi Shirley,

     In your example it looks like PaneB1 and PaneB2 are inside PaneB and this scenario is not really supported by the Docking control. This means that there are unresolved problems like the one you hit. What I could suggest you is to not place a group with panes inside PaneB, but a simple TabControl. This way it will not have Compass and such issue will not appear.

    Hope this helps!

    Kind regards,
    Miroslav Nedyalkov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top