-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Bug] [iOS] CollectionView does not display items if IsVisible
modified via a binding/trigger
#13551
Comments
@dmariogatto |
I made a mistake in the repro project, that first CollectionView should have @AlleSchonWeg |
I had the same problem. A litte delay helps me to workaround this issue: #13203 (comment) |
I am having the same issue on iOS. Using version 5.0.0.1931. Here are the other scenarios where CollectionView fails to update or disappears:
|
Hi everyone, just managed to upgrade to XF5 and went through quite an excercise to find out that we have this visibility issue on the collectionView when we use the "IsVisible" flag to us is a showstopper and I might have to revert to 4.8 unless there is a workaround. Does anyone know if this is been looked at and planned for next service release? |
@developer9969 I found one workaround to the IsVisible bug (#13548), but it can be cumbersome to implement in certain places. But maybe it can help even a tiny bit? |
@Tommigun1980 hi there thanks for your reply and suggestion So somewhow I have to do below in my View CodeBehind, right?
Just hope they do a service release very soon as this breaks at least 10 pages in my app. |
Hi. I’m also hoping for a fix and Hartez seems to just have committed one so that’s good. But in the interim yeah, you could try setting the ItemsSource to null and back to the value after toggling IsVisible. I am not 100% sure if the hack applies to this case as well, but I suspect these issues may be related as they all are very similar and started to happen in XF5 so it’s probably worth a try. And I hope Hartez’s fix solves #13548 as well. |
One more note on this, in my case I had to add delays between setting it to null and adding the new values for the UI to catch up. Hopefully that helps someone too until we hear back back from someone on when to expect a fix for this.
|
* Move layout change resolution call up to VisualElement Fixes #13418 Fixes #13492 * Signal layout request when CollectionView is in a layout Fixes #13551 * Fix layout error loop from test 12714 * Fix autolayout issues when CollectionView size is less than span; * Provide measurement for default text cells (no ItemTemplate); * Cleanup
I am experiencing the same issue on version 4.8.0.1821. I have a CollectionView that has IsVisible set to false initially and the bound ItemSource is set. Then when IsVisible is set to true through binding nothing is displayed. My work around is to switch the CollectionView back to a ListView. |
@jfversluis @davidortinau could you please fix this in the upcoming SR? Still an issue that needs really ugly workarounds |
Description
Bind CollectionView to an item source, also bind
IsVisible
to an initially false value. When the binding forIsVisible
changes totrue
the CollectionView does not display its items. (similar to #13203)Steps to Reproduce
Expected Behavior
Should display items after visibility is changed to
true
.Actual Behavior
No items displayed.
Basic Information
Workaround
N/A (probably can toggle via code behind)
Repro link
Repeo: Issue13203v2.zip
The text was updated successfully, but these errors were encountered: