Setting InitialSize of RadSplitContainer

2 posts, 0 answers
  1. chintan
    chintan avatar
    35 posts
    Member since:
    Apr 2009

    Posted 21 Oct 2009 Link to this post

    Correction in the Title : Setting InitialSize of the RadPaneGroup


    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.

  2. Miroslav Nedyalkov
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 21 Oct 2009 Link to this post

    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:ProportionalStackPanel.RelativeSize="400, 200">
            <telerikDocking:RadPane Header="pane" />
            <telerikDocking:RadPane Header="pane" />
            <telerikDocking:RadPane Header="pane" />

    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