How to scroll inverse at page loading in sfListview

How to scroll inverse in sflistview. I need to implement this control in a chatting application so that i can scroll upwards

1 Reply

RS Rawoof Sharief Muthuja Sherif Syncfusion Team May 9, 2018 09:07 AM UTC

Hi Gurvinder, 
 
We have checked the reported query ”How to scroll inverse in SfListView” from our end. Inverse scrolling is not achieved directly but you can achieve your requirement by using the ScrollToRowIndex method in the ListView loaded event like below code snippet.  
 
Code Example[C#]: 
 
public partial class GroupingPage : ContentPage 
{ 
  public GroupingPage() 
  { 
    InitializeComponent(); 
    listView.Loaded += ListView_Loaded; 
  } 
   private void ListView_Loaded(object sender, ListViewLoadedEventArgs e) 
   { 
        int index = listView.DataSource.DisplayItems.Count; 
        listView.LayoutManager.ScrollToRowIndex(index, true); 
   } 
} 
 
We have already documented this and you can refer the below link. 
 
 
For your reference we have attached the sample and you can download it from the below link. 
 
 
Please let us know if you require further assistance. 
 
Regards, 
Rawoof M. 


Loader.
Up arrow icon