Got ArgumentOutOfRangeException while grouping

11 posts, 1 answers
  1. Zberbang
    Zberbang avatar
    13 posts
    Member since:
    Oct 2013

    Posted 29 Jan 2014 Link to this post

    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}" />
            ...

  2. Yordanka
    Admin
    Yordanka avatar
    634 posts

    Posted 30 Jan 2014 Link to this post

    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 >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Zberbang
    Zberbang avatar
    13 posts
    Member since:
    Oct 2013

    Posted 31 Jan 2014 in reply to Yordanka Link to this post

    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.

  5. Yordanka
    Admin
    Yordanka avatar
    634 posts

    Posted 31 Jan 2014 Link to this post

    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 >>
  6. Zberbang
    Zberbang avatar
    13 posts
    Member since:
    Oct 2013

    Posted 02 Feb 2014 in reply to Yordanka Link to this post

    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
  7. Yordanka
    Admin
    Yordanka avatar
    634 posts

    Posted 03 Feb 2014 Link to this post

    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 >>
  8. Zberbang
    Zberbang avatar
    13 posts
    Member since:
    Oct 2013

    Posted 06 Feb 2014 in reply to Yordanka Link to this post

    Hi Yordanka,

    I see that ticket has been completed. How I can test that? Should I wait for next major release?
  9. Answer
    Yordanka
    Admin
    Yordanka avatar
    634 posts

    Posted 07 Feb 2014 Link to this post

    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).

  10. Yordanka
    Admin
    Yordanka avatar
    634 posts

    Posted 18 Feb 2014 Link to this post

    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
  11. Zberbang
    Zberbang avatar
    13 posts
    Member since:
    Oct 2013

    Posted 19 Mar 2014 in reply to Yordanka Link to this post

    Hi Yordanka,

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

    Best regards,
    Zber
  12. Yordanka
    Admin
    Yordanka avatar
    634 posts

    Posted 19 Mar 2014 Link to this post

    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.

     
Back to Top
UI for WPF is Visual Studio 2017 Ready