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

[Solved] Height issue

1 Answer 174 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jon Bergquist
Top achievements
Rank 1
Jon Bergquist asked on 06 Mar 2009, 09:01 PM
Does the beta version of the grid need to be explicitly sized for height?  I can only get the grid to display 1 or 2 rows at a time.  i would think setting height to auto should cause it to expand to fill the container space.  This is the xaml:

 <Grid x:Name="LayoutRoot" Background="White"
        <Grid.RowDefinitions> 
            <RowDefinition Height="80"/> 
            <RowDefinition Height="*"/> 
        </Grid.RowDefinitions> 
 
        <layout:Header Grid.Row="0"/> 
        <Border Grid.Row="1" BorderBrush="DarkGray" BorderThickness="2" Margin="10"
            <Grid > 
                <Grid.ColumnDefinitions> 
                    <ColumnDefinition Width=".5*" /> 
                    <ColumnDefinition Width=".5*" /> 
 
                </Grid.ColumnDefinitions> 
                <Grid.RowDefinitions> 
                    <RowDefinition Height="40" /> 
                    <RowDefinition Height=".6*" /> 
                    <RowDefinition Height=".4*"/> 
                </Grid.RowDefinitions> 
 
                <menu:RadMenu ClickToOpen="True"  x:Name="GroupMenu" Grid.Row="0" Grid.ColumnSpan="1" Margin="5"
                    <menu:RadMenuItem Header="IT-FRC" IsEnabled="False"/> 
                    <menu:RadMenuItem Header="SSD" /> 
                </menu:RadMenu> 
 
                <Border BorderBrush="DarkGray" BorderThickness="2" Margin="5" Grid.Row="1" Grid.Column="0" x:Name="GridContainer" Height="Auto"
                    <StackPanel Orientation="Vertical" HorizontalAlignment="Center" Height="Auto"
                        <TextBlock Text="{Binding AppointmentMonth}" HorizontalAlignment="Center" FontSize="18" /> 
                        <StackPanel Orientation="Horizontal"
                            <Button Content="Previous" VerticalAlignment="Center" Width="50" Margin="5"/> 
                            <Controls:RadGridView Height="Auto" x:Name="AppointmentGrid" ItemsSource="{Binding AppointmentSlots}" ShowGroupPanel="False" ScrollMode="RealTime"  AutoGenerateColumns="False" Loaded="RadGridView_Loaded" SelectionChanged="RadGridView_SelectionChanged" > 
                                <Controls:RadGridView.Columns> 
                                    <GridView:GridViewDataColumn Width="45" HeaderText=" " DataMemberPath="Slot" /> 
                                    <GridView:GridViewDataColumn Width="45" HeaderText="Mon" DataMemberPath="Mon" CellStyle="{StaticResource GridHyperLink}"/> 
                                    <GridView:GridViewDataColumn Width="45"  HeaderText="Tue" DataMemberPath="Tue" CellStyle="{StaticResource GridHyperLink}"/> 
                                    <GridView:GridViewDataColumn Width="45" HeaderText="Wed" DataMemberPath="Wed" CellStyle="{StaticResource GridHyperLink}"/> 
                                    <GridView:GridViewDataColumn Width="45" HeaderText="Thu" DataMemberPath="Thu" CellStyle="{StaticResource GridHyperLink}"/> 
                                    <GridView:GridViewDataColumn Width="45" HeaderText="Fri" DataMemberPath="Fri" CellStyle="{StaticResource GridHyperLink}"/> 
                                    <GridView:GridViewDataColumn Width="45" HeaderText="Sat" DataMemberPath="Sat" CellStyle="{StaticResource GridHyperLink}"/> 
                                    <GridView:GridViewDataColumn Width="45" HeaderText="Sun" DataMemberPath="Sun" CellStyle="{StaticResource GridHyperLink}"/> 
                                </Controls:RadGridView.Columns> 
                            </Controls:RadGridView> 
                            <Button Content="Next" VerticalAlignment="Center" Width="50" Margin="5" Click="NextWeekHandler"/> 
                        </StackPanel> 
                    </StackPanel> 
                </Border> 
                <Border Grid.Row="2" Grid.Column="0" BorderBrush="DarkGray" BorderThickness="2" Margin="5" Grid.ColumnSpan="2"
 
 
                </Border> 
 
            </Grid> 
        </Border> 
    </Grid> 

1 Answer, 1 is accepted

Sort by
0
Hristo Deshev
Telerik team
answered on 07 Mar 2009, 10:13 AM
Hi Jon Bergquist,

We have such a limitation for the beta, but we have removed it. The Q1 version of the grid will be able to fill the available height.

Greetings,
Hristo Deshev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
GridView
Asked by
Jon Bergquist
Top achievements
Rank 1
Answers by
Hristo Deshev
Telerik team
Share this question
or