I'm first time using syncfusion controls,now i have a problem that sflistview.leftswipe can working withour sfpulltorefresh.anybody can help me please?T
code:
<pullToRefresh:SfPullToRefresh x:Name="pullToRefresh" Grid.Row="1"
ProgressBackgroundColor="#0065FF"
RefreshContentHeight="50"
PullingThreshold="150"
RefreshContentWidth="50"
TransitionMode="Push"
IsRefreshing="{Binding IsRefreshing}"
RefreshCommand="{Binding PullToRefreshCommand}">
<pullToRefresh:SfPullToRefresh.PullableContent>
<Grid>
<syncfusion:SfListView x:Name="listView" ItemSize="120"
AutoFitMode="Height" SelectionMode="None"
AllowSwiping="True" SwipeOffset="120" SwipeThreshold="30"
SwipeStarted="listView_SwipeStarted"
Swiping="listView_Swiping"
SwipeEnded="listView_SwipeEnded"
ItemsSource="{Binding ItemsSource}"
ItemTemplate="{StaticResource ItemTemplate}">
<sync:SfListView.LeftSwipeTemplate>
<DataTemplate x:Name="LeftSwipeTemplate">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Grid BackgroundColor="#009EDA" HorizontalOptions="Fill" VerticalOptions="Fill" Grid.Column="0">
<Grid VerticalOptions="Center" HorizontalOptions="Center">
<Image Grid.Column="0"
Grid.Row="0"
BackgroundColor="Transparent"
HeightRequest="35"
WidthRequest="35"
Source="Favorites.png" />
</Grid>
</Grid>
<Grid BackgroundColor="#DC595F" HorizontalOptions="Fill" VerticalOptions="Fill" Grid.Column="1">
<Grid VerticalOptions="Center" HorizontalOptions="Center">
<Image Grid.Column="0"
Grid.Row="0"
HeightRequest="35"
WidthRequest="35"
BackgroundColor="Transparent"
Source="Delete.png" />
</Grid>
</Grid>
</Grid>
</DataTemplate>
</sync:SfListView.LeftSwipeTemplate>
</syncfusion:SfListView>
</Grid>
</pullToRefresh:SfPullToRefresh.PullableContent>
anybody can help please?
Hi James,
As per your requirement "Why is SfListView.LeftSwipeTemplate not working with SfPullToRefresh?", we would like to inform you that you load the SfListView as the first child of PullableContent for the SfPullToRefresh. We suggest you remove the grid inside the PullableContent in the code you have shared and ensure that swiping is working fine.
Please refer to our user guidance document to use SfListView inside PullToRefresh ,
UG link: https://help.syncfusion.com/xamarin/listview/pull-to-refresh#sflistview-inside-the-sfpulltorefresh
Please let us know if you need further assistance.
Regards,
Suthi Yuvaraj.
Hi Suthi,
Thanks for your reply.
I have removed <grid></gird>,but still can't swiping working.
Hi James,
We have checked the reported issue in simple sample having SfListView inside the PullToRefresh with latest version of our ListView and PullToRefresh control(version-20.2.0.36) and Xamarin.Forms(version-5.0.0.2478). Swiping is properly working in ListView inside PullToRefresh . Please refer the attached workable sample and let us know if you still facing the same issue.
If yes, please modify the sample to the reported scenario and share the below details , which would be helpful for us to check on it and provide you the solution as soon as possible.
Regards,
Suthi Yuvaraj.