Re: Re: Structures DataGrid Smarty Render & Column Width

From: Date: Tue, 25 Jul 2006 19:05:41 +0000
Subject: Re: Re: Structures DataGrid Smarty Render & Column Width
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-24761@lists.php.net to get a copy of this message
Thanks for the clarification Mark. Best, Michael Mark Wiesemann wrote:
Michael Caplan wrote:
I'm looking for a decent way to define the width of a colum set when rendering the datagrid as a table. If I know in the template in advance how many columns and each desired width, then I can code some logic in the template (although that tends to be a bit messy). However, in my case, the columns are variable, and ideally should be set outside of the design logic. I'd like to do something like this: [...]
    
With the current version of the Smarty renderer, you don't have access to the column attributes. You can either overload the Smarty renderer, so that buildHeader() does what you want, or write a feature request for the Smarty renderer. Regards, Mark
-- Michael Caplan - Zend Certified PHP Engineer Programming Manager Apison Communications Suite 110, 151 Provost Street New Glasgow, NS, Canada B2H 2P6 Phone: (902) 695-3375 Toll Free: (800) 845-6998 Fax: (902) 695-7777 email: michael@apison.com URL: http://www.apison.com Specializing in web development, graphic design and Internet marketing

« previous php.pear.general (#24761) next »