Skip to content

TargetInvocationException Occurs When Selecting Header/Footer After Changing ItemsLayout in CV2 #28678

@NafeelaNazhir

Description

@NafeelaNazhir

Description

A TargetInvocationException occurs when selecting a Header or Footer after changing the ItemsLayout in a CollectionView. If ItemsLayout is initially set to Vertical, changing it to Horizontal causes the issue. If ItemsLayout is initially set to Horizontal, switching to Vertical leads to the same exception.

Image

Steps to Reproduce

  1. Launch the application. LayoutIssueSample.zip
  2. Change the ItemsLayout to Horizontal List/Grid using the radio buttons.
  3. Select a Header or Footer option after applying the ItemsLayout change.
  4. The app crashes with a TargetInvocationException.

Link to public reproduction project repository

No response

Version with bug

9.0.50 SR5

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

No response

Affected platforms

iOS, macOS

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-controls-collectionviewCollectionView, CarouselView, IndicatorViewcollectionview-cv2i/regressionThis issue described a confirmed regression on a currently supported versionpartner/syncfusionIssues / PR's with Syncfusion collaborationregressed-in-9.0.0s/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions