When changing the number of rows per page, the grid does not jump back to show a page having some rows, but becomes blank as no rows fit in the page.
Example:
With records = 143.
nPage = 1, nPerPage = 50, shows rows 1-50 (correct)
nPage = 3, nPerPage = 50, shows rows 101-143 (correct)
nPage = 3, nPerPage = 100, shows no rows (technically correct, usably incorrect)
What should have happened, IMHO:
1. When the data fetched shows that there are no rows for the requested nPage and nPerPage
, AND
2. records shows that there are rows that can be fit into a previous page
, the component should requery with either:
A) The lowest page number that ALL the records can fit into
, OR
B) The highest (next) page that can hold at least one row
You're doing a stellar job with this component, btw, and I'll nag my employer for a contribution to your continous efforts, and try and contribute with a Coldfusion custom-tag.
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top