Hi there,
We use a Radlistview to show a series of items with prices and a +/- to change the amount. We have made those items swipeable, so the user can easily swipe those items away to delete them. See example below (sensitive information is censored):
However, even when users do not swipe the item to the right, they can not interact with the minus button. This seems to be because the button is in the swipeable area. If we make the swipeable area smaller, some of the minus button is interactable, and if we make it larger, the plus button also stops being interactable.
Note that the minus button can't be interacted with even if the button is visible.
Is this design as intended, or is this a bug? If it is intended, what is the recommended way to allow the button to be interacted with, while also allowing the list item to be swiped?
The code used for this is:
<ContentPage
xmlns:telerikDataControls="clr-namespace:Telerik.XamarinForms.DataControls;assembly=Telerik.XamarinForms.DataControls"
xmlns:telerikInput="clr-namespace:Telerik.XamarinForms.Input;assembly=Telerik.XamarinForms.Input"
xmlns:telerikListView="clr-namespace:Telerik.XamarinForms.DataControls.ListView;assembly=Telerik.XamarinForms.DataControls"
xmlns:telerikPrimitives="clr-namespace:Telerik.XamarinForms.Primitives;assembly=Telerik.XamarinForms.Primitives"
xmlns:xct="http://xamarin.com/schemas/2020/toolkit">
<telerikDataControls:RadListView
Grid.Row="0"
IsItemSwipeEnabled="True"
ItemTemplateSelector="{StaticResource ReceiptDataSelector}"
ItemsSource="{Binding Receipt.ReceiptLines}"
SelectedItems="{Binding SelectedReceiptLines}"
SelectionMode="Multiple"
SwipeOffset="90, 0, 0, 0"
SwipeThreshold="20">
<telerikDataControls:RadListView.SelectedItemStyle>
<telerikListView:ListViewItemStyle BackgroundColor="{StaticResource SelectionAccentColor}" BorderWidth="0" />
</telerikDataControls:RadListView.SelectedItemStyle>
<telerikDataControls:RadListView.ItemSwipeContentTemplate>
<DataTemplate x:DataType="components:IReceiptLine">
<Grid
Margin="0"
Padding="0"
ColumnSpacing="0"
RowSpacing="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="90" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<telerikInput:RadButton
Grid.Column="0"
Margin="0"
BackgroundColor="Red"
BorderRadius="0"
Command="{Binding RemoveLineCommand, Source={RelativeSource AncestorType={x:Type local:SalePageModel}}}"
CommandParameter="{Binding}"
FontFamily="FontAwesomeSolid"
FontSize="Medium"
Text=""
WidthRequest="90" />
</Grid>
</DataTemplate>
</telerikDataControls:RadListView.ItemSwipeContentTemplate>
</telerikDataControls:RadListView>
code is: