Hi Emil,
Sorry for the inconvenience caused.
We have checked the reported issue “SfListView’s ScrollToRowIndex is not working” at our end and we suspect that you may have used the ScrollToRowIndex method while initializing the SfListView. We would like to let you know that while initializing the SfListView no items are generated initially so, if you have used the ScrollToRowIndex method, the scroll view won’t scroll. However, you can achieve your requirement ScrollToRowIndex while initializing the SfListView by Loaded event as like below code snippet.
Code Example[C#]:
private void ListView_Loaded(object sender, Syncfusion.ListView.XForms.ListViewLoadedEventArgs e)
{
(listView.LayoutManager as LinearLayout).
ScrollToRowIndex(listView.DataSource.DisplayItems.IndexOf(listView.SelectedItem));
} |
For your reference, we have attached the sample and you can download it from the below link.
Also, we have ensured by changing the ScrollToRowIndex method at runtime in a button click event and it is working fine as expected.
Could you please check with the above sample?. If issue still persists at your end, please modify the sample to reproduce the issue and update us with replication procedure or video link. So, that we could able to analyze the issue better and update you with appropriate solution.
Please let us know if you require further assistance.
Regards,
Dinesh Babu Yadav