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

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

1 Answer 147 Views
ListView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Usman
Top achievements
Rank 1
Usman asked on 26 Jan 2017, 11:00 AM

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

 

1 Answer, 1 is accepted

Sort by
0
Nikolay Tsonev
Telerik team
answered on 30 Jan 2017, 04:18 PM
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  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.
Tags
ListView
Asked by
Usman
Top achievements
Rank 1
Answers by
Nikolay Tsonev
Telerik team
Share this question
or