hi Dieter,
First, thanks for pointing out this, I did test and it is as what you are saying. On form, the dataset page Size seems related with the formatting pane. I was incorrect on this. I need to confirm with other team member on the expected behavior.
Second, regarding your observation,
When the pageSize is 5, it calls loadNextPage and get 5 more records, so it totally get all 10 records
When the pageSize is 4, it calls loadNextPage and get 4 more records, now it sits to 8 records. And then, as it still have 2 more records not loaded, it should get hasNextPage to true and load the remaining records.
At my side, I have simulate the whole process and it did get all 10 records. As this does not repro/happen to me, here is the thing that I wish you could help us to figure out.
1) When it sets to load 8 records, would you mind to check the hasNextPage flag again, is it setting to be true?
2) Our loadNextPage is designed that one page is finished loading, then it should request next page data. Would you mind to have 'context.parameters.targetDataSet.loading' to be false before another page loading?
I apologize for any inconvenience, if it still not quite working, would you mind to have a simplified control solution and share to us. My email is 'achen@microsoft.com' in case you need a private drop