This question is locked. New answers and comments are not allowed.
Hi,
I am facing a wired GridView behavior. I have a GridView bound to a List of Objects. Nested inside is a RowDetailsTemplate and nested in that is a DataTemplate.
Now what is happening is that when i expand the last row of the Grid, scroll bars appear. whne i scroll down and then up all the rows expand. I haven't set any such property. And dont know how to control this. also when i select one row different rows are been selected.Below is the Xaml of the code. Could anyone please help. Really need your help. Thanks.
I am facing a wired GridView behavior. I have a GridView bound to a List of Objects. Nested inside is a RowDetailsTemplate and nested in that is a DataTemplate.
Now what is happening is that when i expand the last row of the Grid, scroll bars appear. whne i scroll down and then up all the rows expand. I haven't set any such property. And dont know how to control this. also when i select one row different rows are been selected.Below is the Xaml of the code. Could anyone please help. Really need your help. Thanks.
<telerik:RadGridView HorizontalAlignment="Stretch" Name="EditBatchAssignmentGrid" DataLoadMode="Synchronous" ItemsSource="{Binding}" RowIndicatorVisibility="Collapsed" AutoGenerateColumns="False" IsFilteringAllowed="False" Width="Auto" CanUserResizeColumns="True" ShowGroupFooters="True" IsReadOnly="True" ShowGroupPanel="False" ColumnWidth="auto" DataContext="static" AlternateRowBackground="#FFFF84" RowHeight="25" Background="#FFFFCE" CanUserSortColumns="False" Grid.Column="1" Grid.Row="6" Grid.ColumnSpan="5" Grid.RowSpan="2" ActionOnLostFocus="None" RowDetailsVisibilityChanged="EditBatchAssignmentGrid_RowDetailsVisibilityChanged"> <telerik:RadGridView.Resources> <Style TargetType="telerik:GridViewHeaderCell"> <Setter Property="Background" Value="#FDF053"/> <Setter Property="Foreground" Value="Black"/> <Setter Property="FontWeight" Value="Bold"/> <Setter Property="FontSize" Value="11"/> <Setter Property="BorderThickness" Value="0"/> </Style> <Style TargetType="telerik:GridViewHeaderRow" > <Setter Property="Background" Value="#FDF053"/> <Setter Property="Foreground" Value="Black"/> <Setter Property="FontWeight" Value="Normal"/> <Setter Property="FontSize" Value="11"/> <Setter Property="Height" Value="40"/> <Setter Property="BorderThickness" Value="0"/> </Style> <Style TargetType="telerik:GridViewRow"> <Setter Property="Background" Value="#FFFFCE"/> <Setter Property="BorderThickness" Value="0"/> </Style> </telerik:RadGridView.Resources> <telerik:RadGridView.Columns> <telerik:GridViewToggleRowDetailsColumn IsResizable="False" /> <telerik:GridViewDataColumn DataMemberBinding="{Binding AssignmentNumber}" Header="Assignment No"/> <telerik:GridViewDataColumn DataMemberBinding="{Binding SPReferenceNumber}" Header="SP Reference"/> <telerik:GridViewDataColumn DataMemberBinding="{Binding VehicleSize}" Header="Vehicle Size"/> <telerik:GridViewDataColumn DataMemberBinding="{Binding Segment}" Header="Segment"/> <telerik:GridViewDataColumn DataMemberBinding="{Binding QualityLevel}" Header="Quality Level"/> <telerik:GridViewDataColumn DataMemberBinding="{Binding RedemptionStatus}" Header="Redemption Status"/> </telerik:RadGridView.Columns> <telerik:RadGridView.RowDetailsTemplate> <DataTemplate> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition/> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition/> <RowDefinition Height="20"/> <RowDefinition/> <RowDefinition Height="10"/> <RowDefinition/> <RowDefinition Height="10"/> </Grid.RowDefinitions> <Button Name="validateBatchItems" Content="Validate" Grid.Row="4" Grid.Column="0" Click="validateBatchItems_Click" Width="90" HorizontalAlignment="Right" VerticalAlignment="Center" /> </Grid> </DataTemplate> </telerik:RadGridView.RowDetailsTemplate> </telerik:RadGridView>