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

Got ArgumentOutOfRangeException while grouping

10 Answers 78 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Zberbang
Top achievements
Rank 2
Zberbang asked on 29 Jan 2014, 10:17 AM
Hello all!

I'm using RadGridView 2013 Q3 SP2 to represent collection with grouping feature. Collection size is not over 100 entries.
I found a combination of groupped columns which cause ArgumentOutOfRangeException after i do any scroll: mouse wheel, page down, etc.
All of these columns are strings.
I can't reproduce this bug in sample application so may be it is data sensitive.
GridView has no RowStyles, no CellTemplates and isn't placed in a control that measures its children with infinity.

The bug don't occurs if don't set GroupRenderMode or use old Nested.

Here is stacktrace:
System.ArgumentOutOfRangeException: Argument is out of range. Parameter name: index
   at System.ThrowHelper.ThrowArgumentOutOfRangeException()
   at System.Collections.Generic.List`1.get_Item(Int32 index)
   at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.FlatLayoutStrategy.RealizeRows(Int32 startIndex, Int32 endIndex, Double& verticalOffset, HashSet`1& realizedRows)
   at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.FlatLayoutStrategy.MeasureOverride(Size availableSize)
   at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.MeasureOverride(Size availableSize)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.ContextLayoutManager.UpdateLayout()
   at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
   ...


Here is RadGridView:
<telerik:RadGridView
                     ItemsSource="{Binding Entries}"
                     HorizontalAlignment="Stretch"
                     IsReadOnly="False"
                     AutoExpandGroups="True"
                     CanUserDeleteRows="False"
                     AutoGenerateColumns="False"
                     IsFilteringAllowed="False"
                     CanUserSortColumns="True"
                     GroupRenderMode="Flat"
                     ShowColumnSortIndexes="True"
                     RowIndicatorVisibility="Collapsed">
    <telerik:RadGridView.Columns>
        <telerik:GridViewDataColumn DataMemberBinding="{Binding Value1}" />
        ...

10 Answers, 1 is accepted

Sort by
0
Yordanka
Telerik team
answered on 30 Jan 2014, 05:52 PM
Hello Zber,

Thank you for the feedback.

I've tried to reproduce the problem but to no avail. Could you check the attached test project and modify it in order to achieve the exception?

Regards,
Yordanka
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Zberbang
Top achievements
Rank 2
answered on 31 Jan 2014, 02:37 PM
Hello, Yordanka!

I'm not able to use your test project because the problem is dataset sensitive. I can reproduce it on numbers of datasets.
Here is my test project: https://drive.google.com/file/d/0B5w5QaLXOxYkQVFzOHhXREF5Tk0/edit?usp=sharing

You should drag three columns to start grouping: --First--, --Second--, --Third-- and you'll get exception.

0
Yordanka
Telerik team
answered on 31 Jan 2014, 03:27 PM
Hi Zber,

Thank you very much for the project. 

I've logged the exception in our bug tracking system for further investigation. Also you can track its status from our Feedback portal. Here is the link to it. As a workaround you can change either GroupRenderMode to Nested or to enable row virtualization.

I've updated your Telerik points accordingly.

Regards,
Yordanka
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Zberbang
Top achievements
Rank 2
answered on 03 Feb 2014, 05:30 AM
Hi Yordanka,

Thanks for points and ticket!
p.s. I got exception independently of EnableRowVirtualization value. I found that only Nested GroupRenderMode helps.

Regards,
Zber
0
Yordanka
Telerik team
answered on 03 Feb 2014, 12:09 PM
Hi Zber,

Thank you for the clarification.
Indeed, you are right. I've edited the feedback item.

Regards,
Yordanka
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Zberbang
Top achievements
Rank 2
answered on 07 Feb 2014, 05:24 AM
Hi Yordanka,

I see that ticket has been completed. How I can test that? Should I wait for next major release?
0
Accepted
Yordanka
Telerik team
answered on 07 Feb 2014, 02:43 PM
Hi Zber,

We resolved the exception and that's why the feedback status was set to Completed. The fix for it will be included in the Q1 2014 official version expected in the end of February.

Regards,
Yordanka
Telerik

Check out the new Telerik Platform - the only modular platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native apps. Register for the free online keynote and webinar to learn more about the Platform on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT).

0
Yordanka
Telerik team
answered on 18 Feb 2014, 05:00 PM
Hello Zber,

I am writing to inform you about the exception progress. Unfortunately, the first fix we made didn't pass our tests so we will not be able to resolve it for Q1 2014 official version. We are still working on it and most probably it will be resolved with the first latest internal builds after Q1 2014 release.

Please excuse us for any inconvenience caused.

Regards,
Yordanka
Telerik
0
Zberbang
Top achievements
Rank 2
answered on 19 Mar 2014, 05:06 AM
Hi Yordanka,

I see bug's feedback status is Completed again. Which version the fix will be included?

Best regards,
Zber
0
Yordanka
Telerik team
answered on 19 Mar 2014, 06:18 AM
Hello Zber,

The exception is fixed in our latest internal build published yesterday. Its version is 2014.1.0317 and you can download it under Your Account. Let us know if you find any related problems with the new build.

Regards,
Yordanka
Telerik
 

DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

 
Tags
GridView
Asked by
Zberbang
Top achievements
Rank 2
Answers by
Yordanka
Telerik team
Zberbang
Top achievements
Rank 2
Share this question
or