Hi Mario,
Thank you for contacting Syncfusion support.
We have checked your query “How to add filtered records through load more command” in Xamarin Forms, for this you need to get all the records from the service and filter the records based on your predicate and add the filtered records to dataGrid underlying collection. In our example we have fetched the data from the collection based on the search bar text. Please refer the following code,
[C#]
internal void LoadMoreItems(string searchbarText)
{
if (searchbarText is string && searchbarText != "")
{
foreach (var item in OrdersInfo)
{
if (item.CustomerID.ToLower().Contains(searchbarText.ToLower()))
dataGridCollection.Add(item);
}
}
else
{
var collection = OrdersInfo.Skip(20).Take(30);
foreach (var item in collection)
{
dataGridCollection.Add(item);
}
}
} |
We have attached the sample for your reference,
We hope this helps. Please let us know, if you need any further assistance.
Regards,
Subburaj Pandian V