Hi Andreas,
We have checked the reported issue “RefreshCommand is not triggered when set SfListView’s AllowSwipinga as true” in SfPullToRefresh and SfListView 18.4.0.44 with Xamarin forms versions 4.5.0.617. Unfrotunatley, we couldn’t able to reproduce the issue in our end. We have attached the tested sample for your reference.
Sample link : https://www.syncfusion.com/downloads/support/directtrac/general/ze/ListViewXamarin1511397994.zip
If you still face the issue, could you please modify the provided sample and revert us with its replication procedure. It will be helpful for us to provide you better solution.
Regards,
Karthik Raja
Hi Andreas,
Thanks for the update.
We saw that the reported issue “Pulling occurs while swiping the lisview item” in your video. Currently, we are validating the issue. We will validate and update the further details on or before 11th March 2021. We appreciate your patience until then.
Regards,
Karthik Raja
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="50"/>
<RowDefinition />
</Grid.RowDefinitions>
<Label Text="Headline" VerticalTextAlignment="Center"/>
<syncfusion1:SfPullToRefresh
x:Name="pullToRefresh"
RefreshCommand="{Binding RefreshCommand}"
IsRefreshing="{Binding IsRefreshing}"
TransitionMode="SlideOnTop"
PullingThreshold="100"
RefreshContentHeight="48"
RefreshContentThreshold="48"
RefreshContentWidth="48"
ProgressStrokeWidth="2"
ProgressStrokeColor="Red"
ProgressBackgroundColor="WhiteSmoke" >
<syncfusion1:SfPullToRefresh.PullableContent>
<syncfusion:SfListView
Grid.Row="1"
x:Name="listView"
ItemSpacing="1"
AllowSwiping="True"
AutoFitMode="Height"
FocusBorderThickness="0"
IsStickyHeader="True"
IsStickyGroupHeader="True"
SelectionMode="Single"
AllowGroupExpandCollapse="True"
SwipeOffset="156"
ItemsSource="{Binding Contactsinfo}">
...
</syncfusion:SfListView>
</syncfusion1:SfPullToRefresh.PullableContent>
</syncfusion1:SfPullToRefresh>
</Grid> |
Hi Andreas,Thank you for your patience.We have checked the reported query “Pulling occurs while swiping the lisview item” from our side. We would like to inform you that the SfListView supports refreshing the data by loading it directly into the SfPullToRefresh.PullableContent of the SfPullToRefresh. As per the implementation of the ListView, it is recommended to load the SfListView as the first child of the PullableContent. Hence, we suggest to load the SfListView as the directly to the PullableContent to overcome the reported scenario. Please refer to the following code snippets for more reference,
<Grid><Grid.RowDefinitions><RowDefinition Height="50"/><RowDefinition /></Grid.RowDefinitions><Label Text="Headline" VerticalTextAlignment="Center"/><syncfusion1:SfPullToRefreshx:Name="pullToRefresh"RefreshCommand="{Binding RefreshCommand}"IsRefreshing="{Binding IsRefreshing}"TransitionMode="SlideOnTop"PullingThreshold="100"RefreshContentHeight="48"RefreshContentThreshold="48"RefreshContentWidth="48"ProgressStrokeWidth="2"ProgressStrokeColor="Red"ProgressBackgroundColor="WhiteSmoke" ><syncfusion1:SfPullToRefresh.PullableContent><syncfusion:SfListViewGrid.Row="1"x:Name="listView"ItemSpacing="1"AllowSwiping="True"AutoFitMode="Height"FocusBorderThickness="0"IsStickyHeader="True"IsStickyGroupHeader="True"SelectionMode="Single"AllowGroupExpandCollapse="True"SwipeOffset="156"ItemsSource="{Binding Contactsinfo}">...</syncfusion:SfListView></syncfusion1:SfPullToRefresh.PullableContent></syncfusion1:SfPullToRefresh></Grid>We have mentioned the same in our user guidance document. Please refer to our user guidance document regarding the same from the following link,UG link: https://help.syncfusion.com/xamarin/listview/pull-to-refresh#sflistview-inside-the-sfpulltorefreshPlease let us know if you need further assistance.Lakshmi Natarajan