Skip to content

[Android] ArgumentOutOfRangeException Occurs with KeepLastItemInView for Grouped List #29153

Done

Description

@NafeelaNazhir

Description

When using KeepLastItemInView in a CollectionView with a grouped list , an ArgumentOutOfRangeException is thrown. This issue occurs when adding a new item from top.

Image

Steps to Reproduce

  1. Run the attached sample ItemsUpdatingScrollModeIssue 3.zip
  2. Select KeepLastItemInView and add new item observe that it throws an ArgumentOutOfRangeException.

Expected Behavior:

  • The CollectionView should automatically scroll to the last item in the group without throwing an exception.

Actual Behavior:

  • An ArgumentOutOfRangeException is thrown with the message: 'Index was out of range. Must be non-negative and less than the size of the collection.'

Link to public reproduction project repository

No response

Version with bug

9.0.60 SR6

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

No response

Affected platforms

Android

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

Activity

  1. added
    t/bug
    on Apr 23, 2025
  2. added
    partner/syncfusion
    on Apr 23, 2025
  3. ghost added
    s/triaged
    on Apr 23, 2025
  4. ghost added
    s/verified
    on Apr 23, 2025
  5. ghost added
    area-controls-collectionview
    on Apr 23, 2025
  6. added this to the .NET 9 Servicing milestone on Apr 23, 2025
  7. added a commit that references this issue on Aug 26, 2026
  8. added 2 commits that reference this issue on Nov 12, 2026
    202e880
    75b16f3
  9. 19 remaining items

  10. added 12 commits that reference this issue on Nov 18, 2026
    68c5ec5
    893e64e
    975bea9
    d94837e
    222b2a8
    560737e
    8b60b5a
    9d8453a
    0b2d8b0
    3ad0863
    33ff178
    8ec719f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-controls-collectionviewpartner/syncfusionplatform/androids/triageds/verifiedt/bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions