I notice that the spinner on the RadListview does not disappear when set loadOnDemand=auto until I either tap on the spinner or do a pull to refresh. Is this the expected behavior?
My tns version is: 3.4.3
And I download directly the sample app from: https://github.com/telerik/nativescript-ui-samples-angular
Let say from the beginning, I only have 2 items, so there will be a huge amount of blank space along with a spinner which will be awkward for UI
I am also facing same issue. Any workaround?
If I understand correctly the issue is that when initially there is a small number of items (say 2) and the loading indicator is visible, it doesn鈥檛 go away. The first observation in this scenario is that the indicator is visible from the beginning which is the expected behavior, because when you see the end of the list, you obviously need to load more items. The second observation is that even if it seems that the list is loading, it isn鈥檛, the loading event is not fired, the items are not loaded and the indicator never disappears. This is due to the fact that the actual check for whether the list needs loading, currently is performed only when the list is scrolled. This is a bug that we will address for a future release.
has this been fixed? if so, what version was it released in?
Hi @marablec,
Yes, it was fixed and released with [email protected].
Here are the release notes.
This hasn't been fixed.. I have a list with currently just one item in it (there will be more at some points, its dynamic), and the loading icon does not disappear at all. I
I'm on version 3.8.0
I am using 3.6.1 and it is broken. Is there a way to just access the spinner in Typescript and turn it off?
@tgpetrov also seeing this issue in 5.2.0. Like @marablec asked is there a way to just not have the spinner show at all? This seems like it should be something we can control - people can't release an app that has a spinner randomly spinning.
The issue that was logged initially can be demonstrated with this playground.
The behaviour is: very few items loaded initially; as they don't fill the screen, loading indicator is shown immediately; new items are loaded until the screen is filled. This was not working prior to [email protected] and was fixed in that version.
If the desired behaviour is to not have the indicator initially, _loadOnDemandMode_ can also be None, but then there is no loading on demand.
If someone has encountered something similar please open a new issue with a Playground (or precise reproduction steps) that demonstrates how you reproduce the described issue.
Most helpful comment
If I understand correctly the issue is that when initially there is a small number of items (say 2) and the loading indicator is visible, it doesn鈥檛 go away. The first observation in this scenario is that the indicator is visible from the beginning which is the expected behavior, because when you see the end of the list, you obviously need to load more items. The second observation is that even if it seems that the list is loading, it isn鈥檛, the loading event is not fired, the items are not loaded and the indicator never disappears. This is due to the fact that the actual check for whether the list needs loading, currently is performed only when the list is scrolled. This is a bug that we will address for a future release.