
Announcements
On one of my recent projects,
I have a Gallery control, in each row I have a checkbox for the user to select.
Default is set to unchecked.
When the user checks the checkbox the item ID of the Gallery item is added to a collection, if the user unchecks the checkbox the item ID is removed from the collection. This works great.
But if I do another filter to bring up a new set of choices, this intermittently happens, all of the row item checkboxes are checked in the new filter data set, not added to the collection. The only way to add them to the collection at this point is to uncheck and recheck the checkbox, not good.
To solve this I chose to remove all the check boxes and add two Icons instead, one for adding to the collection and the other for removing from the collection.
DisplayMode for the add icon is set to If(ThisItem in {My COLLECTION HERE}, Disabled, Edit)
DisplayMode for the remove icon is set to If(ThisItem in {My COLLECTION HERE}, Edit, Disabled)
Now only one icon per row will be active.
This even works when switching data sources.
I will troubleshoot the checkbox issue at a later time.