| Mark Wiesemann 2007-03-25, 7:00 pm |
| Hi Ian,
Ian Warner wrote:
> I wish to change the path for the column header sort links, or
> preferable add some Javascript into this so I can make this work with
> AJAX also.
>
> http://triangle/finances/invoices/i...tion=ASC&page=1
>
> Currently when sorting the links look like above.
>
> I would like to change these too:
>
> http://triangle/finances/invoices/i...tion/ASC/page/1
To achieve this, you would need to overload SDG's HTMLTable renderer and
modify the overloaded buildHeader() method. This is the easy part of
your request.
> I then need to throw these paramaters back into the datagrid
This is the more complicated part. SDG currently expects GET or POST
parameters named "orderBy", "direction" and "page" (maybe prefixed).
A quick solution would be to set $_GET['orderBy'] from your modified URL
before you instantiate the SDG class. Not really a clean solution, yes,
but it would work.
Regards,
Mark
--
http://www.markwiesemann.eu
|