I have a server-side API that provides paged data in JSON format based on various request parameters. I would like to provide a user interface that allows the user to forward query results.
I am aware of various components that allow you to use this kind of interface, IPagedCollectionView and ICollectionView on the model / view lever of the model and DataPager in the user interface. However, all the examples I've seen do a swap on top of the data that is already loaded into the model or view model.
I was hoping to find an implementation of IPagedCollectionView somewhere where you simply plug in your "fetcher" method, which fetches the given page of data from the server, plus provides some metadata (shared pages, etc.)
I could write it myself based on the IPagedCollectionView and ICollectionView interfaces, but I would be surprised if there is no standard solution to this problem.
Any pointers to more suitable parts of the structure or libraries that extend the structure will be appreciated!
Coline
source share