This is a migrated thread and some comments may be shown as answers.

Column Group Header Template Binding Issue

1 Answer 80 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Sam
Top achievements
Rank 1
Sam asked on 29 Feb 2016, 09:15 AM

We are encountering an issue where the UI with a Grid View in it freezes when you scroll the grid sideways a certain amount.

 

We are using nested column grouping in order to display a set of "calculated" values above the existing columns. The calculated values are displayed by setting the column group header template and binding to the fields on the control ancestor's data model.

 

The issue is, this worked perfectly fine with v2012.3.1129.40   . The grid would scroll across fine with very little slowdown.

Now with v2015.2.728.45 the grid starts off scrolling normally, but quickly stutters and eventually grinds to a completely unresponsive halt.

EnableColumnGroupsVirtualization is set to false because otherwise the middle nested column group headers do not show up at all (a separate issue I can reproduce in another forum thread if need be).

 

I have a project that can reproduce this but it doesn't seem like I'm allowed to attach it.

 

Essentially it is a grid with a number of grid column groups (50+) defined as follows, and simple GridViewColumns set to the innermost column group. 

 

<telerik:RadGridView.ColumnGroups>
            <telerik:GridViewColumnGroup
                Name="Outermost Group"
                Header="Outermost Group">
                <telerik:GridViewColumnGroup
                    Name="Inner1_1"
                    Header="Inner1_1">
                    <telerik:GridViewColumnGroup.HeaderTemplate>
                        <DataTemplate>
                            <TextBlock
                                HorizontalAlignment="Center"
                                Text="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ChartTest:MainWindow}, Path=DataContext[1]}" />
                        </DataTemplate>
                    </telerik:GridViewColumnGroup.HeaderTemplate>
 
                    <telerik:GridViewColumnGroup
                        Name="Inner1_2"
                        Header="Inner1_2">
                        <telerik:GridViewColumnGroup.HeaderTemplate>
                            <DataTemplate>
                                <TextBlock
                                    HorizontalAlignment="Center"
                                    Text="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ChartTest:MainWindow}, Path=DataContext[1]}" />
                            </DataTemplate>
                        </telerik:GridViewColumnGroup.HeaderTemplate>
 
                        <telerik:GridViewColumnGroup
                            Name="Inner1_3"
                            Header="Inner1_3">
                            <telerik:GridViewColumnGroup.HeaderTemplate>
                                <DataTemplate>
                                    <TextBlock
                                        HorizontalAlignment="Center"
                                        Text="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ChartTest:MainWindow}, Path=DataContext[1]}" />
                                </DataTemplate>
                            </telerik:GridViewColumnGroup.HeaderTemplate>
                        </telerik:GridViewColumnGroup>
                    </telerik:GridViewColumnGroup>
                </telerik:GridViewColumnGroup>
                </telerik:GridViewColumnGroup>
                </telerik:GridViewColumnGroups>
 

1 Answer, 1 is accepted

Sort by
0
Ivan Ivanov
Telerik team
answered on 02 Mar 2016, 05:51 PM
Hi,

Generally the new layout mode for ColumnGroups demonstrates better performance and naturally solves most of the issues that we had with the previous implementation. However, there are still some disparities between them, including specific issue that are reproducible only with the new mode, which we aim to resolve. We will do our best to resolve the related issue (the one about the missing nested groups) as soon as possible.

Regards,
Ivan Ivanov
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
GridView
Asked by
Sam
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
Share this question
or