RadFrameContainer Orientation purpose and working ?

2 posts, 0 answers
  1. NS
    NS avatar
    187 posts
    Member since:
    Jan 2007

    Posted 09 Oct 2008 Link to this post

    What is the purpose of the Orientation property of a RadFrameContainer ?

    I have the following code:
    <Grid HorizontalAlignment="Stretch" Margin="21.25,4.141,0,10.236" VerticalAlignment="Stretch" Grid.Column="2" Grid.Row="3" Grid.RowSpan="3" x:Name="grdContent" Width="Auto">  
                <Telerik:RadFrameContainer x:Name="ContentPanel" Margin="0,0,0,0" Orientation="Vertical" /> 
    In the RadFrameContainer I load a RadPage using navigation service.
    In this RadPage I have a microsoft datagrid.

    When I stretch the datagrid Vertical and Horizontal and Width and Height=Auto, the Vertical scrollbar of the grid stretches larger than it's parent Grid. Resulting the the arrow down buton of the scrollbar is not visible.
    This is the case when I use Orientation="Vertical" If I use Orientation="Horizontal" the datagrid doesn't stretch to full page width and height.

    I have experimented with setting Width and Height on the RadFrameContainer but I do not get the expected result.

    I have a temporary solution by setting the Height of the datagrid to a fixed size.

    Thanks for any help
  2. Bobi
    Bobi avatar
    513 posts

    Posted 10 Oct 2008 Link to this post

    Hello NS,

    By default RadFrameContainer`s Orientation property is set to Vertical. It is used only when you want to implement your custom transition effect. For example if you want to have UP-Down slide effect you  can use Orientation=Vertical and for Left-Right  Orientation=Horizontal. But it depends on your decision what orientation to choose. If you use the  default Methods in RadPageNavigation framework there is no need to set Orientation property.
    As to the grid stretch problem ensure that the problem is not in any Margin or fixed Height/Widht size property.


    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top