Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CollectionView Programmatic-Selection is not updated when binding the selectedItem #25551

Open
SuthiYuvaraj opened this issue Oct 28, 2024 · 1 comment · May be fixed by #25555
Open

CollectionView Programmatic-Selection is not updated when binding the selectedItem #25551

SuthiYuvaraj opened this issue Oct 28, 2024 · 1 comment · May be fixed by #25555
Labels
area-controls-collectionview CollectionView, CarouselView, IndicatorView p/0 Work that we can't release without platform/iOS 🍎 platform/macOS 🍏 macOS / Mac Catalyst platform/windows 🪟 s/needs-repro Attach a solution or code which reproduces the issue t/bug Something isn't working
Milestone

Comments

@SuthiYuvaraj
Copy link
Contributor

SuthiYuvaraj commented Oct 28, 2024

Description

In CollectionView, when selecting through Programmatic selection is not applied.

Steps to Reproduce

Deploy the attached sample
By default, SelectedItem is bound to the string on code behind
Check the default items should be highlighted

Actual Behavior:

No item is selected on initial loading
Image

Expected Behavior:

Item should be selected and Highlighted
Image

Link to public reproduction project repository

CollectionView_selection.zip

Version with bug

9.0.0-rc.2.24503.2

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

iOS, Windows, macOS

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

No response

@SuthiYuvaraj SuthiYuvaraj added the t/bug Something isn't working label Oct 28, 2024
@jsuarezruiz jsuarezruiz added area-controls-collectionview CollectionView, CarouselView, IndicatorView s/needs-repro Attach a solution or code which reproduces the issue labels Oct 28, 2024
Copy link
Contributor

Hi @SuthiYuvaraj. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md

This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

@PureWeen PureWeen added this to the .NET 9 SR1 milestone Oct 29, 2024
@PureWeen PureWeen added the p/0 Work that we can't release without label Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-collectionview CollectionView, CarouselView, IndicatorView p/0 Work that we can't release without platform/iOS 🍎 platform/macOS 🍏 macOS / Mac Catalyst platform/windows 🪟 s/needs-repro Attach a solution or code which reproduces the issue t/bug Something isn't working
Projects
Status: In Progress
Development

Successfully merging a pull request may close this issue.

4 participants