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

Sizing the documentPanes

1 Answer 46 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Edward
Top achievements
Rank 1
Edward asked on 29 Mar 2011, 03:09 PM
<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.

1 Answer, 1 is accepted

Sort by
0
George
Telerik team
answered on 04 Apr 2011, 08:37 AM
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
Tags
Docking
Asked by
Edward
Top achievements
Rank 1
Answers by
George
Telerik team
Share this question
or