Hi,
I'm getting confused about how to implement paged scrolling with a RestDataSource.
If I have *enough* records (more than 200 seems to do it) and I scroll a long way , a second data fetch operation is sent.
Here are two, for example - the first fetch, and the second after scrolling :
1)
http://localhost/DepartmentForm/server/SearchData.php?_operationType=fetch&_startRow=0&_endRow=75&_textMatchStyle=exact&_componentId=Grid_1&_dataSource=Data_1
2)
http://localhost/DepartmentForm/server/SearchData.php?_operationType=fetch&_startRow=101&_endRow=176&_textMatchStyle=exact&_componentId=Grid_1&_dataSource=Data_1
Note that there's a gap between 75 and 101, and 176 and the last 200 record.
I fail, no matter how I scroll, to trigger any further data requests.
I also want a page size of 20 for testing... and have tried setting the drawAheadRatio to 1 (because I don't see where it decides it wants the first 75 rows from) but that makes no difference.
Paging examples for Restful Data where only clientside JS is used are few and far between, and not very helpful.
Can somebody explain what's going on here?
Many thanks
Ben
I'm getting confused about how to implement paged scrolling with a RestDataSource.
If I have *enough* records (more than 200 seems to do it) and I scroll a long way , a second data fetch operation is sent.
Here are two, for example - the first fetch, and the second after scrolling :
1)
http://localhost/DepartmentForm/server/SearchData.php?_operationType=fetch&_startRow=0&_endRow=75&_textMatchStyle=exact&_componentId=Grid_1&_dataSource=Data_1
2)
http://localhost/DepartmentForm/server/SearchData.php?_operationType=fetch&_startRow=101&_endRow=176&_textMatchStyle=exact&_componentId=Grid_1&_dataSource=Data_1
Note that there's a gap between 75 and 101, and 176 and the last 200 record.
I fail, no matter how I scroll, to trigger any further data requests.
I also want a page size of 20 for testing... and have tried setting the drawAheadRatio to 1 (because I don't see where it decides it wants the first 75 rows from) but that makes no difference.
Paging examples for Restful Data where only clientside JS is used are few and far between, and not very helpful.
Can somebody explain what's going on here?
Many thanks
Ben
Comment