Re: Search and filter features in datagrid / formbuilder
| From: | Olivier Guilyardi | Date: | Tue, 06 Jun 2006 09:45:11 +0000 |
| Subject: | Re: Search and filter features in datagrid / formbuilder | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-24262@lists.php.net to get a copy of this message | ||
Hi Alessandro,
Alessandro Pasotti wrote:
I'm widely using FormBuilder for one of my projects, it works great! Now my client asked me to add filtering/search capabilities to the datagrid list views, does anybody have already done it? For filtering I think I could just define some GET vars (like ordering does) and apply the filters to the do before passing it to $dg->bind($do...That's the best IMO. In the future there may be a specific renderer to display a filtering form (something similar to the new HTMLSortForm renderer in CVS), but for now, yeah, just make a custom form, and pass the the submitted parameters to $do->whereAdd(). Then just $dg->bind($do) as usual. Regards, -- og