Swipe not working properly on RadListView on Android(Angular + Typescript)

Thread is closed for posting
2 posts, 0 answers
  1. Usman
    Usman avatar
    1 posts
    Member since:
    Jan 2017

    Posted 26 Jan 2017 Link to this post

    I have been implementing swipe on a RadListView using Typescript and Angular. It works fine with the ios but when I run the same on android, its behaviour is altogether different. What happens actually is that the when swipe gesture is triggered, it swipes but when it finishes the swipe buttons get back to the original position and the view gets back to its original position. I am following this tutorial. The details for the State the software I am using are:

    Nativescript version: 
    2.4.2

    Android version:

    7.1

    NativeScript Version:

    1.5.1

    IDE: Webstorm 2016 3.2/Sublime Text 3

     

  2. Nikolay Tsonev
    Admin
    Nikolay Tsonev avatar
    340 posts

    Posted 30 Jan 2017 Link to this post

    Hello,

    Thank you for contacting us.
    I reviewed your case, however, was unable to reproduce problems while using RadListView and its Swipe to Execute functionality.

    Perhaps the problem in your project could be related to missing definitions of the swipe limits. You could define left and right limits on onSwipeCellStarted event. For example:
    public onSwipeCellStarted(args: ListViewEventData) {
            var swipeLimits = args.data.swipeLimits;
     
            swipeLimits.threshold = 60 * utilsModule.layout.getDisplayDensity();
            swipeLimits.left = 80 * utilsModule.layout.getDisplayDensity();
            swipeLimits.right = 80 * utilsModule.layout.getDisplayDensity();
        }

    For further help, you could also review the example here.

    If you still have the same problem, please provide sample project, which could be debugged locally.

    Let me know, whether the given suggestion helps or if I could assist you further.


    Regards,
    nikolay.tsonev
    Telerik by Progress
    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