This question is locked. New answers and comments are not allowed.
For a navigation menu like iPhone alphabet -scroller on contact's list, I need to scroll the listview down to a particular item. The alphabet-scroller scroll down through the list of contacts depending on which letter is selected with the finger.
Since with endlessScroll the paging is virtual, they are displayed only some of the #pagesize items loaded by the datasource. I calculate the correct page of the datasource to read based on the count of items for each letter (ex. with a pagesize of 50 item, the 121st item is on page 3) . The problem is that I have to scroll through the listview in order to position the first name with the chosen letter in the the first line. I've tried using scrollTo and it works but only for items that are actually on the html page. Indeed, the other item (up to the PageSize) are insert on the page only when the listview scroll down. I can't use a filter, because I can't scroll forward and back using directly the listview.
Is there a scrollToItem solution ? Or how can I say programmatically to the list that I'm scrolling and that it should display the following items ?
Thanks !
Nicola
Since with endlessScroll the paging is virtual, they are displayed only some of the #pagesize items loaded by the datasource. I calculate the correct page of the datasource to read based on the count of items for each letter (ex. with a pagesize of 50 item, the 121st item is on page 3) . The problem is that I have to scroll through the listview in order to position the first name with the chosen letter in the the first line. I've tried using scrollTo and it works but only for items that are actually on the html page. Indeed, the other item (up to the PageSize) are insert on the page only when the listview scroll down. I can't use a filter, because I can't scroll forward and back using directly the listview.
Is there a scrollToItem solution ? Or how can I say programmatically to the list that I'm scrolling and that it should display the following items ?
Thanks !
Nicola