I have a SfDataGrid with AllowLoadMore set to true and my LoadMoreCommand is wired into my View Model that performs on demand loading from the server.
I also have a SearchBar implemented which currently only filters on the current loaded items in my grid - and that works fine. My requirement is to search on the server via a Rest call given the filter text value and return the items that match.
All your examples work on the in memory ItemsSource of the grid when searching I would like an example given the requirement above.
SPSubburaj Pandian Veluchamy Syncfusion Team April 5, 2019 01:35 PM UTC
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,
internalvoid LoadMoreItems(string searchbarText)
if (searchbarText isstring && searchbarText != "")
foreach (var item in OrdersInfo)