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

Setting InitialSize of RadSplitContainer

1 Answer 291 Views
Docking
This is a migrated thread and some comments may be shown as answers.
chintan
Top achievements
Rank 1
chintan asked on 21 Oct 2009, 10:31 AM
Correction in the Title : Setting InitialSize of the RadPaneGroup

Hi,

I have a three RadPaneGroup in the RadSplitContainer.

Now when the docking control renders it by default set the width of the three RadPaneGroup equally.

If RadSplitContainer's width is 300px then all thee RadPaneGroup will become 100px.

But I want to set the initial size on the first RadPaneGroup lets say 150px. and rest of the two RadPaneGroup will occupy remaining space equally (e.g. 75px each). 

I tired by setting RadDock:DockingPanel.InitialSize="400,400" to RadPaneGroup but it dint work

Could somebody please help me on this?

Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 21 Oct 2009, 11:40 AM
Hi Chintan,

As the name of the property says, this attached property is meant to be used on items that are hosted in a DockingPanel. The RadSplitContainer uses a PropertionalStackPanel that uses relative sizes. What you need to do to achieve the goal is to set the ProportionalStackPanel.RelativeSize property. The searched effect can be achieved if you set relative width 400 to the first group (as the default is 200). Here is an example of what I mean:
<telerikDocking:RadSplitContainer InitialPosition="DockedTop" Orientation="Horizontal">
    <telerikDocking:RadPaneGroup
            telerikDocking:ProportionalStackPanel.RelativeSize="400, 200">
        <telerikDocking:RadPane Header="pane" />
    </telerikDocking:RadPaneGroup>
    <telerikDocking:RadPaneGroup>
        <telerikDocking:RadPane Header="pane" />
    </telerikDocking:RadPaneGroup>
    <telerikDocking:RadPaneGroup>
        <telerikDocking:RadPane Header="pane" />
    </telerikDocking:RadPaneGroup>
</telerikDocking:RadSplitContainer>

Regards,
Miroslav Nedyalkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Docking
Asked by
chintan
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Share this question
or