I have the following:
<telerik:RadListView
Margin="10"
IsPullToRefreshActive="{Binding LoadItemsTask.IsNotCompleted}"
IsPullToRefreshEnabled="True" Grid.Row="2" x:Name="listView" ItemsSource="{Binding Items}" >
(...)
</telerik:RadListView>
LoadItemsTask is called at start and its value is True for a few seconds but the refresh indicator only shows up (and eventually hides) when the pull gesture is called, it does not respond to the initial value of the property.
Shouldn't this property be respected always, not just when the gesture is called?
Hi Alfredo,
Could you please share whether load on demand feature is used? Also what is the OS system you are using for testing?
No, load on demand is not used here. If used, there's a LOAD MORE indicator which is not what I need here. Just the regular loading indicator.
This is on Android.
Hi Alfredo,
The pull to refresh indicator shows when the gesture is triggered. and the duration is up to the code you have written, when you call EndRefresh(), it sets the IsPullToRefreshActive to false. Here is the EndRefresh() implementation:
public void EndRefresh(bool isAnimated = false) { if (!isEndingRefresh) { isEndingRefresh = true; if (Renderer != null) { Renderer.EndRefresh(isAnimated); IsPullToRefreshActive = false; } isEndingRefresh = false; } }
so the behavior with the refresh indicator is expected. You can test the example here: https://docs.telerik.com/devtools/maui/controls/listview/gestures/pull-to-refresh
Hope this answers your question.