Pager PageSize value resets itself on page change

1 Answer 19 Views
Pager
Kenn.
Top achievements
Rank 1
Iron
Kenn. asked on 21 Jun 2022, 03:02 PM
Trying to wire up a pager for a grid. If I set the pagesize options as 5, 10, and 20 with 100 records available and choose a pagesize of 20, I get 5 available pages. If I choose page 4, the pagesize resets to 5 and I get 20 pages. How can I keep the pagesize of 20 when changing pages?

1 Answer, 1 is accepted

Sort by
0
Accepted
Kenn.
Top achievements
Rank 1
Iron
answered on 23 Jun 2022, 12:54 PM
So as it turns out not only is there a PageChanged event, but also a PageSizeChanged event. In that event, the backer field containing the pagesize value can be updated, allowing it to be sent with further page changed events.
Tags
Pager
Asked by
Kenn.
Top achievements
Rank 1
Iron
Answers by
Kenn.
Top achievements
Rank 1
Iron
Share this question
or