Structure_Datagrid - paging past last page?
| From: | Matte Edens | Date: | Mon, 07 Mar 2005 02:58:52 +0000 |
| Subject: | Structure_Datagrid - paging past last page? | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-17892@lists.php.net to get a copy of this message | ||
I've been looking but I can't find a facility for Structure_Datagrid (SDG) to force the display of the last page of data if you are requesting a page greater than the total number of pages.
If I have a dataset of 12 records, and my perPage setting is 5, then I have 3 pages. If I go to the second page, then set my perPage to 15 records, I get empty output.
Since I'm asking for 15 records per page, all my records will be on page 1 but SDG thinks I still want to see page 2.
Is this something that I should be pre-empting before I tell SDG what page it should show? Is it something that can be implemented in SDG? IMHO, SDG should know if I'm going past the last page and display the last set of data (whether it's a full dataset or not).
--
matte - matte@arubanetworks.com
<http://www.mozilla.org/products/thunderbird>