RadSplitContainer's Width Can't be increase

4 posts, 1 answers
  1. Piyush Patel
    Piyush Patel avatar
    41 posts
    Member since:
    Oct 2012

    Posted 06 Oct 2009 Link to this post

    Hi. I  m working on Silverlight 3.0 beta version. In my Xaml file I m using RadSplitContainer with two RadPaneGroup.Both RadPaneGroup have one RadPane. I have using property InitialPosition = “DockedTop”.Now My problem is  RadSplitContainer Height cannot become Auto.and Both RadPaneGroup width are same.when I want increase one of the  RadPaneGroup’s Width.but Both width are same.Mean can’t increase the width of the RadPaneGroup.attached also Screenshots of my pages psl see that page first.

    my code in .xaml form like below




    <RadDock:RadSplitContainer InitialPosition="DockedTop"  x:Name="st" >

     

     

                                    <RadDock:RadPaneGroup HorizontalAlignment="Left">

                                        <RadDock:RadPane CanDockInDocumentHost="False" CanUserClose="False" x:Name="paneDates" HorizontalAlignment="Left">

     

     

                                         

                                        </RadDock:RadPane>

                                    </RadDock:RadPaneGroup>

                                   

                                    <RadDock:RadPaneGroup HorizontalAlignment="Left">

                                        <RadDock:RadPane CanDockInDocumentHost="False" CanUserClose="False" x:Name="paneDates" HorizontalAlignment="Left">

     

     

     

                                        </RadDock:RadPane>

                                    </RadDock:RadPaneGroup>

                                </RadDock:RadSplitContainer>

  2. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 07 Oct 2009 Link to this post

    Hello Piyush,

    The Docking control doesn't support Auto sizes. We also recommend not to use Horizontal/Vertical alignment on items of a SplitContainer. The root level SplitContainers can have only absolute sizes. The SplitContainers and PaneGroups that are contained by a SplitContainer can have only relative sizes. You can change their default relative size by setting the ProportionalStackPanel.RelativeSize attached property. Here is an example (I used your code):
    <RadDock:RadSplitContainer InitialPosition="DockedTop" x:Name="st"
     
        <RadDock:RadPaneGroup RadDock:ProportionalStackPanel.RelativeSize="300, 200"
            <RadDock:RadPane CanDockInDocumentHost="False" CanUserClose="False" 
                    x:Name="paneDates1" HorizontalAlignment="Left"
     
            </RadDock:RadPane> 
        </RadDock:RadPaneGroup> 
     
        <RadDock:RadPaneGroup RadDock:ProportionalStackPanel.RelativeSize="100, 200"
            <RadDock:RadPane CanDockInDocumentHost="False" CanUserClose="False" 
                    x:Name="paneDates2" HorizontalAlignment="Left"
     
            </RadDock:RadPane> 
        </RadDock:RadPaneGroup> 
    </RadDock: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.
  3. Piyush Patel
    Piyush Patel avatar
    41 posts
    Member since:
    Oct 2012

    Posted 07 Oct 2009 Link to this post

    Thanks Sir! 
    RadSplitContainer's Height Become Auto by using C# Coding?????  Or Any Way??
  4. Answer
    Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 08 Oct 2009 Link to this post

    Hi Piyush,

    The Heights of the root level split containers are taken from the attached property RadDocking.InitilSize automatically. The sizes of the split containers and pane groups that are inside a split container are calculated relatively.

    All the best,
    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