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

radtileview scrollbar not appearing

1 Answer 113 Views
TileView
This is a migrated thread and some comments may be shown as answers.
Ankit
Top achievements
Rank 1
Ankit asked on 05 Feb 2011, 07:11 PM
Hello,

This is my code :-

I have my layout root set to Scrollviewer. Still the RadTileView does not show scrollbar. Notice that i have scrollviewer in 1st item, So it shows for the RadTileView but i need scrollbar for whole page not for the container. How can i show that? I want my RadTileitem to show full grid and the scrollbar should appear normal just as you see with normal html page. I don't want scrollbar for the item itself but i need it at the page level. What changes do i need to make in the existing code :-
<UserControl
    x:Class="RadTileViewDemo.MainPage"
    d:DesignWidth="640" d:DesignHeight="480">
 
    <ScrollViewer x:Name="LayoutRoot" Background="White">
        <Grid>
            <Grid Margin="0,0,-27,0" Background="Black" Height="156" VerticalAlignment="Top">
                <TextBlock HorizontalAlignment="Center" Margin="0" TextWrapping="Wrap" Text="Some content" d:LayoutOverrides="Height" Foreground="White" VerticalAlignment="Center"/>
            </Grid>
            <telerik:RadTileView Margin="0,156,-27,-10" MinimizedColumnWidth="100">
                <telerik:RadTileViewItem Header="Item 1" Position="0" TileState="Maximized">
                    <ScrollViewer>
                         
                    <Grid Background="Yellow" Height="700" Width="1500"/>
                    </ScrollViewer>
                </telerik:RadTileViewItem>
                <telerik:RadTileViewItem Header="Item 2" TileState="Minimized"/>
                <telerik:RadTileViewItem Header="Item 3" TileState="Minimized"/>
            </telerik:RadTileView>
        </Grid>
    </ScrollViewer>
</UserControl>

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 09 Feb 2011, 06:39 PM
Hi Ankit,

The problem in this situation is that the RadTileView cannot set its own width or let its parent containers know the with of its Children`s content. I prepared for you a sample workaround but it is a bit hacky and could be risky. The other approach could be setting explicit width and height of the RadTiLeView bigger than its Item`s sizes. Please feel free to ask if you need further assistance. 

All the best,
Petar Mladenov
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
TileView
Asked by
Ankit
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or