Column Group Header Template Binding Issue

2 posts, 0 answers
  1. Sam
    Sam avatar
    2 posts
    Member since:
    Feb 2016

    Posted 29 Feb Link to this post

    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>
     

  2. Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1127 posts

    Posted 02 Mar Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top