This question is locked. New answers and comments are not allowed.
I was hoping SL3/812 would correct this problem as well, but it hasn't. I would like to have a series of GridViews which are a minimum height when the bound collection is empty, grow 1 row at a time up to some maximum height, and then start scrolling. The only way so far to get the scrollbar to appear is to set the GridView's MaxHeight property. Whenever I do this and the bound collection is empty, the grid sizes to MaxHeight and looks ugly. For 1, 2, 3...10 rows, it sizes properly and then starts scrolling, but quite often the collection is legitimately empty.
The GridViews themselves are all inside a Grid inside a RadExpander inside a larger grid, etc., like so:
I've tried setting the Grid.Row Height to *, and 400 as well and left off the MaxHeight on the RadGridView and that did nothing -- in that case, and the no MaxHeight on RadGridView case the grid fills up as many rows as there are. I also set the MinHeight hoping that would be respected when empty - to no avail.
Thx,
Tim
The GridViews themselves are all inside a Grid inside a RadExpander inside a larger grid, etc., like so:
| <Telerik:RadExpander Grid.Row="3" Grid.Column="0" x:Name="Events" |
| IsExpanded="True" Header="{Binding Path=Resource.Events, Source={StaticResource i18n}}"> |
| <Grid> |
| <Grid.RowDefinitions> |
| <RowDefinition Height="auto"/> |
| <Grid.RowDefinitions> |
| <Grid.ColumnDefinitions> |
| <ColumnDefinition Width="*"/> |
| </Grid.ColumnDefinitions> |
| <TelerikGridView:RadGridView |
| x:Name="EventViewer" Grid.Row="0" IsReadOnly="True" |
| MaxHeight="400" ScrollMode="RealTime" |
| AutoGenerateColumns="False" > |
I've tried setting the Grid.Row Height to *, and 400 as well and left off the MaxHeight on the RadGridView and that did nothing -- in that case, and the no MaxHeight on RadGridView case the grid fills up as many rows as there are. I also set the MinHeight hoping that would be respected when empty - to no avail.
Thx,
Tim