Search code examples
nativescriptnativescript-telerik-ui

Nativescript RadListView get scroll Y


I am using Nativescript with telerik and i need to get the scroll position of a RadListView, because i need to know what item is the first visible item on the users screen after scrolling.

Is there any possibility to do this with nativescript or with native ios/android code inside it?


Solution

  • This really depends on how you are planning on tracking it;

    You can use itemSwipeProgressChanged, itemSwipeProgressStarted, itemSwipeProgressEnded events and the event will give you the itemIndex of the item that has scrolled into view...