Hi to All.
I like SfGrid component but I cannot implement "smart" pagination on it.
For example, I have 1000 records in a database. If I set datasource and fetch all records on init page pagination works fine but it takes too long to fetch data.
I want to fetch the first 100 records on init and show them and then when the user clicks the next button fetch the next 100 records and show them and so on.
I tried to use CustomAdapter as described in the article but it doesn't work.
I injected DataService in the CustomAdapter. DataService fetches data from WebApi (I also tried fake TestService which just returns an inlined list of data). When DataService fetches data the app fails.
So does anybody have a working example of using CustomAdapter to implement pagination?
Thanks in advance.