Sets the dataset's page size.
The setPageSize() function returns a Promise that's resolved when:
Because setting the page size refreshes the dataset, the dataset's current item is reset to the first item in the dataset.
Calling setPageSize() on a write-only dataset causes an error.
Note:
setPageSize() throws an error.The new page size.