I have an SfListView filled with items and a radiobutton at start. While i am scrolling down and then up again i able to see some traces from previous radiobuttons. I will upload a video and also a project for helping you understand better.
|
<syncfusion:SfListView x:Name="listView" ListViewCachingStrategy="CreateNewTemplate" ItemsSource="{Binding BookInfo}">
<syncfusion:SfListView.ItemTemplate>
<DataTemplate>
<StackLayout Orientation="Horizontal" >
<syncfusion1:SfRadioButton IsChecked="{Binding IsChecked}" CheckedColor="DarkGreen" UncheckedColor="Gray"/>
<Label Text="{Binding BookDescription}" BackgroundColor="White" TextColor="Black"/>
</StackLayout>
</DataTemplate>
</syncfusion:SfListView.ItemTemplate>
</syncfusion:SfListView> |
Hi Lakshmi Natarajan,
solution works perfect, my problem is that listivew doesn't scroll smoothly when ListViewCachingStrategy is been setting to CreateNewTemplate.
Is there any way to achieve smooth scrooling?
Thank you Lakshmi Natarajan it scrolls really fast now!!.
Just one more question.
|
Query |
Details |
|
What should be the ItemsCacheLimit number? Total collection's items? Example if my observable collection has 60 items i need to set this ItemsCacheLimit's value to 60? |
Gets or sets the cache limit for create and reuse the ListViewItems if different templates are used in DataTemplateSelector for better scrolling performance. Based on this value, SfListView creates the number of ListViewItems for different templates in the view and if new template is created while scrolling and reuse it if same template is used for improving the scrolling performance.
Please find the details in our API reference,
Additionally, the ItemsCacheLimit is not required in this case; we have included it for testing purposes only. Please disregard that.
|
|
Can i use ListViewDependencyService for iOS? If yes can you send me an example of class file?
|
You can disable the SfListView’s default scrolling using dependency services. We have addressed the same query using dependency service and updated in the following forum with sample.
Please find the sample and the code snippets in the following forum,
|
Thank you very much Lakshmi Natarajan!!! You have saved my day!