Set Height to RadPane or RadPaneGroup

4 posts, 0 answers
  1. Edo Cof
    Edo Cof avatar
    47 posts
    Member since:
    Feb 2006

    Posted 17 Oct 2009 Link to this post

    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?
  2. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 20 Oct 2009 Link to this post

    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.
  3. Edo Cof
    Edo Cof avatar
    47 posts
    Member since:
    Feb 2006

    Posted 02 Nov 2009 Link to this post

    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.
  4. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 03 Nov 2009 Link to this post

    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.
Back to Top