Darron, I agree that re-use is a good argument for this approach.
I guess it is down to personal preference. Best, allen -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Darron J. Schall Sent: 14 October 2005 20:30 To: [email protected] Subject: Re: [flexcoders] DataGridColumn display issue Allen Manning wrote: >Custom cell renderer might be a bit OTT for this, labelFunction would be a >good start. > > A cell renderer for an object path is reusable, whereas with using a label function you have to create a new function for each path. It may be over the top for this particular case, but it's a "once and done" thing. Example: <mx:DataGridColumn headerText="Department" columnName="user.department" /> <mx:DataGridColumn headerText="Primary Role" columnName="permissions.role.primary" /> <mx:DataGridColumn headerText="Username" columnName="user.username" /> All 3 of the above columns can use a single "label with a path" cell renderer, as opposed to having to create 3 different label functions to return the different paths individually. In a small project this probably isn't a big deal (maintaining a long list of label functions), but in a large project it could get cumbersome quickly. I agree that labelFunction is easier to create, but easiest isn't always best. :-) -d -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.12.2/137 - Release Date: 16/10/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.12.2/137 - Release Date: 16/10/2005 ------------------------ Yahoo! Groups Sponsor --------------------~--> Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM --------------------------------------------------------------------~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

