-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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 with grouping enabled doesn't reflect the change on UI when a child record is added/removed #22158
Comments
/similarissues |
Hi I'm an AI powered bot that finds similar issues based off the issue title. Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you! Open similar issues:
|
Can repro this issue at Android platform on the latest 17.10 Preview 6(8.0.21). |
First of all, I'd recommend checking the documentation for properly structuring the data into groups before binding it to the CollectionView. When I encountered a similar issue before, the key solution for me was to use ObservableCollection provides notifications when items are added, removed, or changed, ensuring that the UI stays in sync with the underlying data. Define a model class for the service category group:
|
@gework7 , I will definitely try this. Thank you. BTW I don't see Observable collection mentioned in the documentation instead List is used. |
@boopathyraj25 did it work? |
@gework7 |
The observable collection already implements the necessary INotifyPropertyChanged interfaces. Just make a private field categoryName and public property CategoryName, then in the setter call On property changed(new(name of(CategoryName));
|
@jari-schuurman , |
@boopathyraj25 just be aware of a memory leak, more details can be found here: #22954 |
Ok. Thank you.
…On Tue, Jun 11, 2024, 15:16 jari-schuurman ***@***.***> wrote:
@boopathyraj25 <https://github.com/boopathyraj25> just be aware of a
memory leak, more details can be found here: #22954
<#22954>
—
Reply to this email directly, view it on GitHub
<#22158 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQFMMGHIMFIBULZIQJ2ZYPLZG5LLXAVCNFSM6AAAAABHCXKLLCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRRGUZTOOBWG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Description
CollectionView with grouping enabled doesn't reflect the change on UI when a child record is removed
Steps to Reproduce
Link to public reproduction project repository
https://github.com/boopathyraj25/MAUI.CollectionViewBugs
Version with bug
8.0.14 SR3.1
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android 27 and up
Did you find any workaround?
No
Relevant log output
No response
The text was updated successfully, but these errors were encountered: