ScrollToRowIndex never goes to the last Index

Hello!  I am working on a project that has a horizontal, scrolling listview.  I also have button that is supposed to allow the user to go to the last index and the layout should auto-scroll to the last index.  

(listView.LayoutManager as LinearLayout).ScrollToRowIndex(indexNum);

However, the above line only takes the screen to the edge of the current visible page, not to the end of the list, even though the index is the last item.  Do you know why that is?  Is there something I'm missing?

If I scroll all the way to the end, then all the way back to the beginning, the button will work as expected, taking you all the way to the end.  But upon first loading, it will only take you to the end of the visible list.

5 Replies

MK Muthu Kumaran Gnanavinayagam Syncfusion Team November 9, 2017 10:58 AM UTC

Hi Tommy, 
 
Sorry for the inconvenience. 
 
We have resolved the reported issue and it will be included in our upcoming 2017 Volume 4 release which is scheduled to be rolled out by the mid of November. We appreciate your patience until then. 
 
Please let us know if you require further assistance. 
 
Regards, 
G.Muthu Kumaran. 



PU pumaprog replied to Muthu Kumaran Gnanavinayagam November 29, 2017 07:02 PM UTC

Hi Tommy, 
 
Sorry for the inconvenience. 
 
We have resolved the reported issue and it will be included in our upcoming 2017 Volume 4 release which is scheduled to be rolled out by the mid of November. We appreciate your patience until then. 
 
Please let us know if you require further assistance. 
 
Regards, 
G.Muthu Kumaran. 


Is this supposed to be fixed in the recent update on Nov. 13th?  It still seems to be an issue as of today, 11/29.


DB Dinesh Babu Yadav Syncfusion Team November 30, 2017 12:26 PM UTC

Hi Tommy, 
 
Sorry for the inconvenience. 
 
The reported issue “ScrollView does not scroll to the last item when passing the last item index in ScrollToRowIndex method” has been resolved and included in the release and we are glad to announce that our Essential Studio Volume 4, 2017 (Version 15.4.0.17) is rolled out and is available for download under the following link.  
  
 
Also, we have updated our UG documentation about working “ScrollToRowIndex method in SfListView” and please find the documentation below 
 
So, Could you please ensure the reported issue in the latest SfListView version (15.4.0.17)? If the issue still persists, please revert us with the replication procedure and share the following details which would help us to analyze the issue better and update you an appropriate solution. 
 
  • Please share the Xamarin Forms version? We have ensured in Xamarin Forms version (v 2.4.0.280)
  • On which layout you have defined the SfListView? i.e., Have you defined the SfListView in Grid, StackLayout etc.,  
  • Have you used ScrollToRowIndex method in a loaded event of SfListView or at any other specific scenario (such as in a button event etc..,) ?
 
Please let us know if you require further assistance. 
 
Regards, 
Dinesh Babu Yadav 
 



PU pumaprog December 5, 2017 04:22 PM UTC

I can confirm this is working now.  Thank you.


MK Muthu Kumaran Gnanavinayagam Syncfusion Team December 6, 2017 03:53 AM UTC

Hi Tommy, 
 
Thanks for the confirmation. 
 
Regards, 
G.Muthu Kumaran. 


Loader.
Up arrow icon