I have a list with incremental load.
For every given piece I have to read the detail
Is that the best approach?
Query |
Response |
Load data into SfListView from SQLite |
We have included in our KB documentation about “Loading the data from SQLite online/offline database in SfListView” similar to the reported query and please find the following link for more information’s.
Offline SQLite with SfListView: https://www.syncfusion.com/kb/7550/how-to-load-the-data-from-sqlite-offline-database-in-sflistview
Online SQLite with SfListView: https://www.syncfusion.com/kb/7821/how-to-load-the-data-from-sqlite-online-database-in-sflistview |
Support for incremental loading in SfListView |
We have prepared the KB documentation regarding the support for load more items when end of SfListView is reached and please refer the following KB link for more information.
|
For every given piece I have to read the detail |
We could not able to understand the reported query. So, could you please share some additional details and exact requirement that you need to implement at your end using SfListView which would help us to analyze the requirement better and update you an appropriate solution. |
I had read this documentation.
I have a list of products that I read correctly from my database.
For each product I have to go to read data with complex queries and that can not be run along with the first one.
On native android in the getview (adapter list) i read these data and only if the scrool is not busy.
Yes.
In addition to the ItemAppering and ItemDisappering, it would be helpful to have scroll status.
At the moment I resolved this way even if it is not optimal.
private async void ScrollRows_Changed(object sender, ScrollChangedEventArgs e)
{
IsBusyScroll = true;
var lastIndex = scrollRows.LastBodyVisibleLineIndex;
await Task.Delay(600);
if (lastIndex == scrollRows.LastBodyVisibleLineIndex)
{
IsBusyScroll = false;
var rows = scrollRows.GetVisibleLines();
try
{
for (int i = 0; i < rows.Count; i++)
{
var row = rows[i];
ARTICOLO_BIND_LISTE bind = ViewModel.MagartItems[row.LineIndex];
if (bind.SET_ALL_DATO == false)
{
System.Diagnostics.Debug.WriteLine("APPERING SCROLL " + bind.IndexDisplay + "->" + bind.Descrizione);
ViewModel.LoadItemComplete(row.LineIndex);
}
}
}
catch { }
}
}