Hi,
in our Xamarin-Forms Project, I use a Telerik ListView (LinearLayout) with swiping. For some cells, i want to disable swiping. In your manual [1] i read, that by setting the Cancel-property of the ItemSwipeStartingEventArgs to false in the StartSwiping-Event:
public void OnItemSwipeStarting(object sender, ItemSwipeStartingEventArgs e)
{
var swipedItem = e.Item as OurItem;
if (swipedItem.HasACertainProperty == true)
{
// For some items, we want to "disable" the swiping
e.Cancel = false;
}
}
This does not work, but when i set e.Cancel to true, then
in iOS - swiping is disabled as expected.
in Android - we get a NullPointerException: (Java.Lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Rect.height()' on a null object reference)
in UWP - the CellContent disapears and never comes back again :'-(
The question is: is it possible to "disable" swiping for some cells in the Telerik ListView? If the answer is yes, how could I do this?
Thank you very much in advance.
All the best,
Ivo
[1] http://docs.telerik.com/devtools/xamarin/controls/listview/gestures/listview-gestures-cell-swipe