Skip to content

CollectionViewHandler2 RelativeSource binding to AncestorType not working after ItemsSource update #30813

@alexpetin

Description

@alexpetin

Description

Almost the same issue as described at #26066 which was fixed only partially.
Now RelativeSource bindings works for initially loaded items, but stop working after updating.

...
CollectionView.ItemsSource = SomeInitialData; // ok for now
...
CollectionView.ItemsSource = SomeNewData; // RelativeSource bindings stop working

Steps to Reproduce

  1. Build and run repro project on iOS device or simulator;
  2. Tap on any collection view item - DisplayAlert will be shown;
  3. Pull down to refresh items, tap - no DisplayAlert, tap command is null after refresh

Link to public reproduction project repository

https://github.com/alexpetin/TestCollView2

Version with bug

9.0.90 SR9

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

No response

Affected platforms

iOS

Affected platform versions

Tested on iOS 15.2, 18.5. I think any version.

Did you find any workaround?

Did not find.

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    collectionview-cv2partner/syncfusionIssues / PR's with Syncfusion collaborationplatform/ioss/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