As we resize the window size we are able to stretch radgridview widthwise...but on resize the height is not correct.
Meaning if the window is minimized to its height we want to radgridview to reduce in size and records with having a scrollbar for grideview. I.e it is should fit to the size of window.
Following is the code of the radexpander and radgridview used in the control.
Can you help us in this?
<telerik:RadExpander
x:Name="expOpenTicketsForTeam"
IsExpanded="True"
Header="Open Tickets for My Team"
HeaderTemplate="{StaticResource RadExpanderHeaderTemplate}"
>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<telerik:RadGridView
x:Name="gvOpenTicketsForTeam"
AutoGenerateColumns="False"
EnableRowVirtualization="True"
IsSynchronizedWithCurrentItem="False"
Background="Transparent"
SelectionMode="Single"
SelectionUnit="FullRow"
GridLinesVisibility="Horizontal"
ItemsSource="{Binding}"
IsReadOnly="True"
IsFilteringAllowed="True"
MinHeight="56"
Height="Auto"
MaxHeight="154"
ShowGroupPanel="False"
CanUserFreezeColumns="False"
CanUserResizeColumns="True"
RowIndicatorVisibility="Collapsed"
RowStyle="{StaticResource GridViewOpenTicketRowStyle}"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
ScrollViewer.HorizontalScrollBarVisibility="Disabled"
ScrollViewer.VerticalScrollBarVisibility="Auto"
MouseDoubleClick="gvOpenTicketsForTeam_MouseDoubleClick"
Width="{Binding RelativeSource={RelativeSource AncestorType={x:Type Grid}, AncestorLevel=1}, Path=ActualWidth}"
>
</telerik:RadGridView>
</Grid>
</telerik:RadExpander>