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

RadFrameContainer Orientation purpose and working ?

1 Answer 46 Views
Navigation
This is a migrated thread and some comments may be shown as answers.
NS
Top achievements
Rank 1
NS asked on 09 Oct 2008, 11:11 AM
Hello,
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" /> 
        </Grid> 
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
Nicolas

1 Answer, 1 is accepted

Sort by
0
Bobi
Telerik team
answered on 10 Oct 2008, 06:09 AM
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.

Regards,
Boryana

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Navigation
Asked by
NS
Top achievements
Rank 1
Answers by
Bobi
Telerik team
Share this question
or