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

Can't Figure Out Vertical Scrolling.

2 Answers 79 Views
GridView
This is a migrated thread and some comments may be shown as answers.
TheLostLeaf
Top achievements
Rank 2
TheLostLeaf asked on 25 Jun 2010, 06:50 PM
Hello, 

I can't ever seem to get the vertical scroll to appear. The regular MS Windows grid scrolls always appears. This control is being added to another grid inside a RadTabItem. I would like the scroll to kick in when ever the screen size requires it without having to set hard Heights and Widths. Thanks.

<UserControl x:Class="XXXXXXXXXX_Controls.ServerControlLog"    
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"    
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"    
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"      
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"      
                 
             mc:Ignorable="d"      
              xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">     
    <Grid>    
        <Grid.RowDefinitions>    
            <RowDefinition Height="Auto" />    
            <RowDefinition Height="Auto" />    
        </Grid.RowDefinitions>    
        <WrapPanel Grid.Row="0" Margin="10">     
            <telerik:RadButton Content="Start Server" Margin="5"  Height="23" HorizontalAlignment="Left"  Name="btnStartServer" Click="btnStartServer_Click" VerticalAlignment="Top" Width="75" />    
            <Label Name="lblMessage" Margin="5"></Label>    
        </WrapPanel>    
        <telerik:RadGridView HorizontalAlignment="Left"  Name="radGridServerLog" VerticalAlignment="Top" Grid.Row="1" ScrollViewer.VerticalScrollBarVisibility="Visible" />    
    
    </Grid>    
</UserControl>    
 

2 Answers, 1 is accepted

Sort by
0
TheLostLeaf
Top achievements
Rank 2
answered on 26 Jun 2010, 07:05 PM
Ok, I figured it out. You can't use auto in the row of the grid you have to apply a min value for height with an astrks *
 <Grid.RowDefinitions> 
            <RowDefinition Height="Auto" /> 
             <RowDefinition Height="200*"  /> 
</Grid.RowDefinitions> 
0
Pavel Pavlov
Telerik team
answered on 28 Jun 2010, 03:48 PM
Hi ,
Just a small clarification - RadGridView will not show any scrollbars  in case it is placed in a panel which measures it with Infinity. In this context - setting the height as you have done is a descent solution.

Sincerely yours,
Pavel Pavlov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
TheLostLeaf
Top achievements
Rank 2
Answers by
TheLostLeaf
Top achievements
Rank 2
Pavel Pavlov
Telerik team
Share this question
or