ProgressNS / nativescript-ui-feedback

This repository is used for customer feedback regarding Telerik UI for NativeScript. The issues system here is used by customers who want to submit their feature requests or vote for existing ones.
Other
115 stars 21 forks source link

RadListView swiping cannot be turned off and on through binding; itemSwiping no solution #896

Open jokro opened 6 years ago

jokro commented 6 years ago

In playground I provided an example with an instruction how to see the bug.

I need longPress on a RadListView. If swipeActions="false" I can put onLongPress in a StackLayout inside the item template. If swipeActions="true" this solution does not work anymore. For that reason I tried to toggle swipeActions to true/false by using {{-binding. My example shows that once swipeActions has been toggeled true, it is possible to toggle it false again, but then swiping is not made possible again.

I also implemented itemSwiping. The existence or absense of this function has no effect in combination with {{-binding of swipeActions. If I use itemSwiping without {{-binding of swipeActions, setting swipeActions to true, does not solve my above problem, as it prevents longPress inside StackLayout from working.

tsonevn commented 6 years ago

Hi @jokro, Thank you for the provided sample project. I was able to recreate the issue on my side on Android. This scenario seems to work as expected on iOS. Meanwhile, you can try getting an instance of the RadListView component using getViewById() method and setting up the swipeActions property value via code-behind:

let listview = page.getViewById('<listview_id>');
listview.swipeActions = <needed value> /* true|false*/