This is a migrated thread and some comments may be shown as answers.

RadListView Swipe Action

4 Answers 99 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Dimitar
Top achievements
Rank 1
Dimitar asked on 02 Jan 2018, 01:02 PM
 01.
<GridLayout backgroundColor="#0C98D2" >
02.        <lv:RadListView items="{{dataItems}}" selectionBehavior="Press"
03.      itemSwipeProgressStarted="onSwipeCellStarted"                           
04.      swipeActions="true">
05.       <lv:RadListView.itemSwipeTemplate>
06.    <GridLayout columns="auto, *, auto"
07.      backgroundColor="#0C98D2">
08.   </GridLayout>
09.      </lv:RadListView.itemSwipeTemplate>
10. 
11.       <lv:RadListView.itemTemplate  >
12.              <Label text="Test" tap="DOSomehing" />
13.      </lv:RadListView.itemTemplate  >
14.       </lv:RadListView>
15.</GridLayout>

 

Working properly for iOS , but for Android in when click on Test label the tap action doesn't happen. If I remove the lv:RadListView.itemSwipeTemplate block it start working again and raising the tap handler . The issue is only for Android.

 

 

4 Answers, 1 is accepted

Sort by
0
Accepted
Nick Iliev
Telerik team
answered on 02 Jan 2018, 01:30 PM
Hello Dimitar,

This is expected as Android does have event propagation which is opposite to the iOS one. The parent events in Android are overlapping the child one.
In fact, this issue is logged here as a bug (it should be labeled feature as this is expected behavior in Android) and currently, there is no applicable workaround.
For your convenience, I have added an upvote for implementing the feature with a link to this ticket.

Regards,
Nikolay Iliev
Progress Telerik
Did you know that you can open private support tickets which are reviewed and answered within 24h by the same team who built the components? This is available in our UI for NativeScript Pro + Support offering.
0
Dimitar
Top achievements
Rank 1
answered on 02 Jan 2018, 02:16 PM
ok. Thank you . 
0
Dimitar
Top achievements
Rank 1
answered on 02 Jan 2018, 02:22 PM
But is it not depend from params which are defined in the listener (capturing , bubbling or target)
0
Nick Iliev
Telerik team
answered on 02 Jan 2018, 02:55 PM
Hello Dimitar,

The event propagation in Android is preventing the same gesture to be fired with9in nested components. It is not related to the arguments passed to the native listener as this is the behavior by design.

Regards,
Nikolay Iliev
Progress Telerik
Did you know that you can open private support tickets which are reviewed and answered within 24h by the same team who built the components? This is available in our UI for NativeScript Pro + Support offering.
Tags
General Discussion
Asked by
Dimitar
Top achievements
Rank 1
Answers by
Nick Iliev
Telerik team
Dimitar
Top achievements
Rank 1
Share this question
or