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

Set Height to RadPane or RadPaneGroup

3 Answers 194 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Edo Cof
Top achievements
Rank 1
Edo Cof asked on 17 Oct 2009, 09:53 AM
I try to set Height property to RadPane, but if i do that, my RadPane is not shown.
How to set Height to one RadPane or RadPaneGroup?

3 Answers, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 20 Oct 2009, 12:36 PM
Hello Matjaz,

The RadPane control is displayed like the Header of the pane so by changing its Height you are actually changing the Height of the Header. The content of the pane is actually shown in the RadPaneGroup. The sizes of the RadPaneGroups and RadSplitContainers that are not directly in the Docking control are set relatively. You can set relative size to a RadPaneGroup by setting it the PropertionalStackPanel:RelativeSize attached property. Here is an example of what I mean:
<telerikDocking:RadDocking>
    <telerikDocking:RadSplitContainer InitialPosition="DockedTop" Orientation="Horizontal">
        <telerikDocking:RadPaneGroup telerikDocking:ProportionalStackPanel.RelativeSize="100, 200">
            <telerikDocking:RadPane Header="pane" />
        </telerikDocking:RadPaneGroup>
        <telerikDocking:RadPaneGroup
                telerikDocking:ProportionalStackPanel.RelativeSize="300, 200">
            <telerikDocking:RadPane Header="pane" />
        </telerikDocking:RadPaneGroup>
    </telerikDocking:RadSplitContainer>
</telerikDocking:RadDocking>

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.
0
Edo Cof
Top achievements
Rank 1
answered on 02 Nov 2009, 05:15 PM
And what if i don't want to set width property, only height, which is logic thing for me? Width = 100% and height is some variable.
0
Miroslav Nedyalkov
Telerik team
answered on 03 Nov 2009, 12:41 PM
Hello Matjaz,

I would suggest you to set it to the default value - 200. In result you will get 100% as 200 of 200 is 100%.

Best wishes,
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
Edo Cof
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Edo Cof
Top achievements
Rank 1
Share this question
or