Re: Re: Datagrid - possible bug (paging / sorting)
| From: | Olivier Guilyardi | Date: | Tue, 23 May 2006 13:18:20 +0000 |
| Subject: | Re: Re: Datagrid - possible bug (paging / sorting) | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-24123@lists.php.net to get a copy of this message | ||
Hi Dominik and Mark,
Mark Wiesemann wrote:
Toppi wrote:Indeed it's a feature configured with the "sortingResetsPaging" option which is se to true by default. I consider this coherent, since when for example a grid is sorted by "price" and you're on page 3, if you then sort it by quantity, you expect to see the lowest/highest quantity first : page 3 is not relevant anymore, in regard to the new sorting request. But you can disable this behaviour with : $datagrid->setRendererOption ('sortingResetsPaging', false); Greetings -- ogi more or less took the example by Olivier (http://www.samalyse.com/code/pear/dgdo/), to get a quick look at Datagrid. I am using the following source (with the current cvs version of datagrid). when i now click on one of the column headers datagrid should sort the table, but instead of sorting it just jumps back to page1.The jumping is a 'feature', your table should also be sorted.