Re: One more question: hidden datagrid columns
| From: | Olivier Guilyardi | Date: | Mon, 09 Jun 2008 10:55:57 +0000 |
| Subject: | Re: One more question: hidden datagrid columns | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-29000@lists.php.net to get a copy of this message | ||
Hi Bernhard,
please try to shorten/synthesize quotations when answering.
Bernhard Harb wrote:
On Sun, 08 Jun 2008 21:52:49 +0200, Olivier Guilyardi <olivierg@php.net> wrote:Bernhard Harb a écrit :In my Smarty template I do a {foreach} on every row and column and then I check the columncounter inside each row and only print the column if it is less then a specific value.
I don't know what you mean by "filters". SDG doesn't register any smarty _modifier_ if that's what you're thinking of. It does register one smarty function and assign some smarty variables. It's all documented on the smarty renderer page: http://pear.php.net/manual/en/package.structures.structures-datagrid.structures-datagrid-renderer.smarty.php Please RTFM (Read The Fine Manual) -- OlivierThere's a cleaner way, with the 'associative' option of the smarty renderer.Ah, thats nice - thanks for the hint. One last question for the moment: Is there any documentation about using DataGrid filters with Smarty. That means, is there a renderer for those filters for Smarty and which Smarty variables are set for use in the template file?