Hi all,
I have a gallery that creates a collection of data when an item is selected. I have a button that refreshes the data source (Dataverse) and then Select() the gallery to run the OnSelect code and regenerate the collection.
However, when I press the button it does refresh the data source and it does run the OnSelect code, but it seems to run the code before it has completed the refresh, as the collection still contains the old data, If I then select the item again it shows the new data in the collection.
I believe I could work around this by just using a time to create a small delay between the refresh and the select but would prefer not to intentionally make my app slower.
Does anyone have any ideas on this?
Thanks.

Report
All responses (
Answers (