RadListView Swipe Action

5 posts, 1 answers
  1. Dimitar
    Dimitar avatar
    66 posts
    Member since:
    May 2014

    Posted 02 Jan Link to this post

     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.

     

     

  2. Answer
    Nikolay Iliev
    Admin
    Nikolay Iliev avatar
    344 posts

    Posted 02 Jan Link to this post

    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.
  3. Dimitar
    Dimitar avatar
    66 posts
    Member since:
    May 2014

    Posted 02 Jan in reply to Nikolay Iliev Link to this post

    ok. Thank you . 
  4. Dimitar
    Dimitar avatar
    66 posts
    Member since:
    May 2014

    Posted 02 Jan Link to this post

    But is it not depend from params which are defined in the listener (capturing , bubbling or target)
  5. Nikolay Iliev
    Admin
    Nikolay Iliev avatar
    344 posts

    Posted 02 Jan Link to this post

    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.
Back to Top