I got a really strange issue with an grid with 28 columns the first column is been rendered again at the end of the grid when I scroll horizontally. I got a mix of type of columns GridViewDataColumn, GridViewCheckBoxColumn some with GridViewDataColumn.HeaderCellStyle and some without.
18 Answers, 1 is accepted
Can you send us an example where we can reproduce this? More info about the grid version will be appreciated as well.
Best wishes,Vlad
the Telerik team
I've never seen such issue before. Can you post more info about your scenario? How grid columns are generated in your case? Auto-generated or programmatically created?
Greetings,Vlad
the Telerik team
<telerik:GridViewDataColumn DataMemberBinding="{Binding Path=Isin}" HeaderTextAlignment="Center" Header="ISIN"/>
also
<telerik:GridViewCheckBoxColumn ...
and some other like that
<telerik:GridViewDataColumn Header="" HeaderTextAlignment="Center" IsGroupable="False" IsFilterable="False" SortMemberPath="">
<telerik:GridViewDataColumn.HeaderCellStyle>
<Style TargetType="telerik:GridViewHeaderCell">
<Setter Property="ContentTemplate">
<Setter.Value>
<DataTemplate>
<StackPanel>
<TextBlock Text="" HorizontalAlignment="Center"/>
</StackPanel>
</DataTemplate>
</Setter.Value>
</Setter>
</Style>
</telerik:GridViewDataColumn.HeaderCellStyle>
<telerik:GridViewDataColumn.CellTemplate>
<DataTemplate>
</DataTemplate>
</telerik:GridViewDataColumn.CellTemplate>
</telerik:GridViewDataColumn>
Can you verify if AutoGenerateColumns is set to False in your case?
Kind regards,Vlad
the Telerik team
<telerik:RadGridView Grid.ColumnSpan="4" Grid.Row="5" DataLoadMode="Asynchronous"
ScrollMode="Deferred" AutoGenerateColumns="False"
SelectedItem="{Binding NewIssueItemSelected, Mode=TwoWay}" ShowGroupPanel="False" IsFilteringAllowed="False"
ItemsSource="{Binding Path=....}" IsReadOnly="True" MinWidth="1100" Height="720" FontSize="10"
Grid.RowSpan="2">
Unfortunately from provided info so far I cannot tell you what is going on and why you see such issue and my suggestion is to isolate the case in small project (where the problem can be reproduced) and send us this project via support ticket. We will review your scenario and we will let you know about our findings.
Sincerely yours,Vlad
the Telerik team
Please reopen your support ticket and attach the zip.
Kind regards,Vlad
the Telerik team
I've checked your project and indeed your right. We fixed this immediately and the fix will be part of our upcoming latest build (this Friday). In the meantime please use Header property of the columns instead HeaderCellStyle. Here is an example:
Best wishes,
Vlad
the Telerik team
e.g.
<telerik:GridViewDataColumn.HeaderCellStyle>
<Style TargetType="telerik:GridViewHeaderCell">
<Setter Property="ContentTemplate">
<Setter.Value>
<DataTemplate>
<StackPanel>
<TextBlock Text="Issue Name" HorizontalAlignment="Center"/>
<sdk:AutoCompleteBox Grid.Column="2" TabIndex="2" Height="20" Width="295" AllowDrop="False" IsDropDownOpen="False"
ItemsSource="{Binding ElementName=LayoutRoot, Path=DataContext.Collection}" FilterMode="Contains"
ValueMemberPath="IssueName" Text="{Binding item, Mode=TwoWay}" MinimumPrefixLength="2">
<sdk:AutoCompleteBox.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<TextBlock Text="Issue : " FontWeight="Bold" />
<TextBlock Text="{Binding ...}"/>
<Rectangle Style="{StaticResource DividerStyle}"/>
<TextBlock Text="{Binding ...}" FontWeight="Bold" />
</StackPanel>
</DataTemplate>
</sdk:AutoCompleteBox.ItemTemplate>
</sdk:AutoCompleteBox>
</StackPanel>
</DataTemplate>
</Setter.Value>
</Setter>
</Style>
</telerik:GridViewDataColumn.HeaderCellStyle>
In this case please wait a bit for our upcoming build and let me know if you still have any problems.
Regards,Vlad
the Telerik team
Unfortunately ElementName Binding issue is out of our control still if we find any workaround we will publish more info (or even fix if the workaround is enough stable/general).
Best wishes,Vlad
the Telerik team
The proxy fix is not an elegant fix is to noisy and hit the performance, I just wander why work well on the style but fails on the another?
Generally our templates are loaded using LoadContent() method and the Header is assigned to the Content of the header cell. In this case ElementName Binding will fail since the template is not yet part of the visual tree when the binding is executed.
Kind regards,Vlad
the Telerik team
Friday is already passed and I haven't seen the promissed patch.
Our latest internal build with version 2010.2.1008 was shipped on Friday. You can find it under Your Account->Downloads->RadControls for Silverlight->Latest Internal Builds or follow this link.
Please let me know if I can be of further assistance.
Best wishes,
Hristo
the Telerik team
