Re: Can I disable sorting in Structures::Datagrid?
| From: | dondo | Date: | Sun, 16 Apr 2006 17:34:21 +0000 |
| Subject: | Re: Can I disable sorting in Structures::Datagrid? | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-23668@lists.php.net to get a copy of this message | ||
Thanks Justin. If I do want to disable sorting and create my own headers, how would I disable the
sorting? Or would it be disabled automatically by turning off the headers?
I'm hesitant to submit a bug just yet.. I want to make sure I'm not just missing something
or using the library incorrectly first.
Regards,
Bryan
--- On Sat 04/15, Justin Patrin < papercrane@gmail.com > wrote:
From: Justin Patrin [mailto: papercrane@gmail.com]
To: dondo@myway.com
Cc: pear-general@lists.php.net
Date: Sat, 15 Apr 2006 13:53:33 -0700
Subject: Re: [PEAR] Can I disable sorting in Structures::Datagrid?
On 4/15/06, dondo <dondo@myway.com> wrote:>> Hi, I'm currently re-writing a website
to use Pear Structures::DataGrid for rendering my HTML tables. I previously had built my own
datagrid-type framework but it has become a mess. It did, however, allow me to specify both an
orderBy and a thenBy parameter for sorting, which was done by the database. With DataGrid, I
can't seem to get this to work. I can sort the data with both the orderBy and thenBy
parameters in the database of course, but then DataGrid re-sorts it by the orderBy parameter (from
the $_GET array). Can I somehow tell DataGrid not to sort at all? I've tried hacking the
source code a bit but haven't had much luck.>> I also don't want to disable the
header links because I want to be able to sort using them as well.>If the sorting isn't
working I suggest you submit a bug. If you wantto disable sorting you're not going to have
links in the headers. Youcan always put your own links in the headers, though, using
your ownparams.--Justin Patrin
_______________________________________________
No banners. No pop-ups. No kidding.
Make My Way your home on the Web - http://www.myway.com