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

RadSplitContainer's Width Can't be increase

3 Answers 130 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Piyush Patel
Top achievements
Rank 1
Piyush Patel asked on 06 Oct 2009, 01:11 PM

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>

3 Answers, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 07 Oct 2009, 08:42 AM
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.
0
Piyush Patel
Top achievements
Rank 1
answered on 07 Oct 2009, 12:46 PM
Thanks Sir! 
RadSplitContainer's Height Become Auto by using C# Coding?????  Or Any Way??
0
Accepted
Miroslav Nedyalkov
Telerik team
answered on 08 Oct 2009, 12:03 PM
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.
Tags
Docking
Asked by
Piyush Patel
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Piyush Patel
Top achievements
Rank 1
Share this question
or