Sizing the documentPanes

2 posts, 0 answers
  1. Edward
    Edward avatar
    83 posts
    Member since:
    Feb 2011

    Posted 29 Mar 2011 Link to this post

    <telerik:RadDocking Grid.Row="1" HasDocumentHost="True" HorizontalAlignment="Stretch" Margin="0,0,0,0" Name="radDocking1" VerticalAlignment="Stretch">
                <telerik:RadDocking.DocumentHost>
                    <telerik:RadSplitContainer InitialPosition="DockedRight" HorizontalContentAlignment="Stretch">
                        <telerik:RadPaneGroup Name="radPaneGroup2" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto" >
                            <telerik:RadDocumentPane Header="Main Document" />
                        </telerik:RadPaneGroup>
                        <telerik:RadPaneGroup Name="radPaneGroup4" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" MinWidth="50" >
                            <telerik:RadDocumentPane Header="Side Document" Width="200" MinWidth="200" />
                        </telerik:RadPaneGroup>
                    </telerik:RadSplitContainer>
                </telerik:RadDocking.DocumentHost>
                 
                <telerik:RadSplitContainer InitialPosition="DockedLeft" >
                    <telerik:RadPaneGroup Name="radPaneGroup1" >
                        <telerik:RadPane Header="Pane 1" IsPinned="False"/>
                        <telerik:RadPane Header="Pane 2" IsPinned="False"/>
                    </telerik:RadPaneGroup>
                </telerik:RadSplitContainer>                                          
            </telerik:RadDocking>

    I am relatively new so forgive me for silly question like this.  I was trying to make a 3 pane groups:
    - Left would be unpin and hidden, with a default width when pin.
    - Right would be a documentPane with a min width and resizable
    - Center would use whatever that's left

    I couldn't get the sizing on the right pane working.  The center and right is always split in half.
  2. George
    Admin
    George avatar
    1332 posts

    Posted 04 Apr 2011 Link to this post

    Hello Edward,


    Please, refer to the following code snippet:

    <telerik:RadDocking>
     
                <telerik:RadDocking.DocumentHost>
                    <telerik:RadSplitContainer>
                        <telerik:RadPaneGroup>
                            <telerik:RadDocumentPane Header="Pane3" />
                        </telerik:RadPaneGroup>
                    </telerik:RadSplitContainer>
                </telerik:RadDocking.DocumentHost>
     
                <telerik:RadSplitContainer InitialPosition="DockedLeft">
                    <telerik:RadPaneGroup>
                        <telerik:RadPane Header="Pane1" IsPinned="False" />
                    </telerik:RadPaneGroup>
                </telerik:RadSplitContainer>
     
                <telerik:RadSplitContainer InitialPosition="DockedRight"  MinWidth="100">
                    <telerik:RadPaneGroup>
                        <telerik:RadPane Header="Pane2" />
                    </telerik:RadPaneGroup>
                </telerik:RadSplitContainer>
            </telerik:RadDocking>


    The RadSplitContainers are placed in a DockPanel. The DocumentHost area is actually the last item in the DockPanel and it fills in the remaining space(after all RadSplitContainers arrange). This is the reason I would suggest you to use DocumentHost for center and a RadSplitContainer for right area.

    For more information about RadDocking control, please refer to the following links:

    I hope this helps.


    Regards,
    George
    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. DevCraft banner
Back to Top