This question is locked. New answers and comments are not allowed.
Vitor Fernandes
Top achievements
Rank 1
Vitor Fernandes
asked on 24 Feb 2010, 06:54 PM
Hello,
I updated to the new beta and after that my row details template no longer automatically streches to occupy all the width of the grid. This used to work with the previous version. Did something changed?
thanks
I updated to the new beta and after that my row details template no longer automatically streches to occupy all the width of the grid. This used to work with the previous version. Did something changed?
thanks
4 Answers, 1 is accepted
0
Hi Vitor Fernandes,
Regards,
Milan
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.
That is very strange. Could you please send us your RowDetailsTemplate or better yet (if convenient) a sample application that reproduces the problem.
Thank you for your time.
Regards,
Milan
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.
0
Vitor Fernandes
Top achievements
Rank 1
answered on 25 Feb 2010, 10:46 AM
This is my xaml for the gridview:
| <telerikGridViewControls:RadGridView x:Name="DG_ChannelsList" SelectionMode="Extended" ItemsSource="{Binding DomainContext.Channels, ElementName=ChannelsDataSource, Mode=OneWay, Converter={StaticResource DataPagerConverter}, ConverterParameter='channel_name'}" ScrollMode="RealTime" ScrollViewer.VerticalScrollBarVisibility="Auto" AutoGenerateColumns="False" ShowGroupPanel="False" Margin="0,64,0,24" Height="Auto" Width="Auto" IsReadOnly="True" > |
| <telerikGridViewControls:RadGridView.Columns> |
| <telerikGridViewControls:GridViewToggleRowDetailsColumn Width="32" /> |
| <telerikGridViewControls:GridViewDataColumn Header="Activo" DataMemberBinding="{Binding active}" IsFilterable="False" IsGroupable="False" IsSortable="False" ></telerikGridViewControls:GridViewDataColumn> |
| <telerikGridViewControls:GridViewDataColumn Header="Sigla" DataMemberBinding="{Binding channel_name_short}" IsFilterable="False" IsGroupable="False" ></telerikGridViewControls:GridViewDataColumn> |
| <telerikGridViewControls:GridViewDataColumn Header="Nome" DataMemberBinding="{Binding channel_name}" IsFilterable="False" IsGroupable="False" ></telerikGridViewControls:GridViewDataColumn> |
| </telerikGridViewControls:RadGridView.Columns> |
| <telerikGridViewControls:RadGridView.RowDetailsTemplate> |
| <DataTemplate> |
| <Grid Background="#FF525252"> |
| <Grid.RowDefinitions> |
| <RowDefinition Height="*" /> |
| </Grid.RowDefinitions> |
| <Grid.ColumnDefinitions> |
| <ColumnDefinition Width="*"/> |
| </Grid.ColumnDefinitions> |
| <Grid.Resources> |
| <LinearGradientBrush x:Key="GridViewBackground" EndPoint="0.5,1" StartPoint="0.5,0"> |
| <GradientStop Color="#FF474747" Offset="1"/> |
| <GradientStop Color="#FF242424" Offset="0"/> |
| <GradientStop Color="#FF3F3F3F" Offset="0.15"/> |
| <GradientStop Color="#FF121212" Offset="0.152"/> |
| </LinearGradientBrush> |
| </Grid.Resources> |
| <telerikNavigation:RadTabControl HorizontalAlignment="Stretch" BorderBrush="#FFF6F6F6" BackgroundVisibility="Collapsed" BorderThickness="0 1 0 0" x:Name="RadTabControl1" Margin="30,30,30,30"> |
| <telerikNavigation:RadTabItem Header="Detalhes" HorizontalAlignment="Stretch" Margin="10,0,0,0" Height="24"> |
| <Border BorderBrush="#FF000000" BorderThickness="1"> |
| <Grid Background="{StaticResource GridViewBackground}"> |
| <Grid.RowDefinitions> |
| <RowDefinition Height="16"/> |
| <RowDefinition /> |
| <RowDefinition /> |
| <RowDefinition /> |
| <RowDefinition /> |
| <RowDefinition /> |
| <RowDefinition /> |
| <RowDefinition /> |
| <RowDefinition Height="16"/> |
| </Grid.RowDefinitions> |
| <Grid.ColumnDefinitions> |
| <ColumnDefinition Width="160" /> |
| <ColumnDefinition Width="180" /> |
| <ColumnDefinition Width="300" /> |
| <ColumnDefinition Width="16" /> |
| </Grid.ColumnDefinitions> |
| <Grid.Resources> |
| <local:ImageConverter x:Key="ImageConverter" /> |
| </Grid.Resources> |
| <localControls:ImageFrame x:Name="ChannelImage" Grid.Column="0" Grid.RowSpan="7" Grid.Row="1" HorizontalAlignment="Center" Width="114" Height="114" VerticalAlignment="Center" ImageSource="{Binding DefaultMultimedia, Converter={StaticResource ImageConverter}}" /> |
| <TextBlock Text="Activo: " FontWeight="Bold" Grid.Row="1" Grid.Column="1" Foreground="White"/> |
| <CheckBox IsEnabled="False" IsChecked="{Binding active}" Grid.Row="1" Grid.Column="2" Foreground="White"/> |
| <TextBlock Text="Sigla: " FontWeight="Bold" Grid.Row="2" Grid.Column="1" Foreground="White"/> |
| <TextBlock Text="{Binding channel_name_short}" Grid.Row="2" Grid.Column="2" Foreground="White"/> |
| <TextBlock Text="Nome: " FontWeight="Bold" Grid.Row="3" Grid.Column="1" Foreground="White"/> |
| <TextBlock Text="{Binding channel_name}" Grid.Row="3" Grid.Column="2" Foreground="White"/> |
| <TextBlock Text="Código Importação: " FontWeight="Bold" Grid.Row="4" Grid.Column="1" Foreground="White"/> |
| <TextBlock Text="{Binding import_code}" Grid.Row="4" Grid.Column="2" Foreground="White"/> |
| <TextBlock Text="Texto Livre 1: " FontWeight="Bold" Grid.Row="5" Grid.Column="1" Foreground="White"/> |
| <TextBlock Text="{Binding free_text1}" Grid.Row="5" Grid.Column="2" Foreground="White"/> |
| <TextBlock Text="Texto Livre 2: " FontWeight="Bold" Grid.Row="6" Grid.Column="1" Foreground="White"/> |
| <TextBlock Text="{Binding free_text2}" Grid.Row="6" Grid.Column="2" Foreground="White"/> |
| <TextBlock Text="Texto Livre 3: " FontWeight="Bold" Grid.Row="7" Grid.Column="1" Foreground="White"/> |
| <TextBlock Text="{Binding free_text3}" Grid.Row="7" Grid.Column="2" Foreground="White"/> |
| </Grid> |
| </Border> |
| </telerikNavigation:RadTabItem> |
| </telerikNavigation:RadTabControl> |
| </Grid> |
| </DataTemplate> |
| </telerikGridViewControls:RadGridView.RowDetailsTemplate> |
| </telerikGridViewControls:RadGridView> |
0
Accepted
Hello Vitor Fernandes,
Milan
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.
This is due to a change that we have introduced with the Q1 Beta but will revert to the original behavior for our official release. Currently you can workaround the problem by specifying a simple RowDetailsStyle:
<telerik:RadGridView.RowDetailsStyle> <Style TargetType="grid:DetailsPresenter"> <Setter Property="HorizontalContentAlignment" Value="Stretch"/> </Style> </telerik:RadGridView.RowDetailsStyle>Sorry for this inconvenience.
Kind regards,Milan
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.
0
Vitor Fernandes
Top achievements
Rank 1
answered on 26 Feb 2010, 10:50 AM
Hi,
It worked, but I had to change the namespace of the TargetType property value, like this:
Thanks for your help
It worked, but I had to change the namespace of the TargetType property value, like this:
| <telerikGridViewControls:RadGridView.RowDetailsStyle> |
| <Style TargetType="telerikGridView:DetailsPresenter"> |
| <Setter Property="HorizontalContentAlignment" Value="Stretch"/> |
| </Style> |
| </telerikGridViewControls:RadGridView.RowDetailsStyle> |
Thanks for your help