Hi Andrew,
Thanks for your advice. Thank you for explaining me the function of
labelFunction. I will try your approach and will let you know, if I had
success.
Best regards,
Pascal
greenfishinwater wrote:
>
> This is an example of labelFunction that works for me:
>
> In mxml:
> <mx:DataGridColumn headerText="Status" dataField="price_status"
> labelFunction="priceStatusLabel"/>
>
> The function in AS3:
> private function
> priceStatusLabel(item:Object,column:DataGridColumn):String {
> if (item.price_status == "O") {
> return "Open";
> } else if (item.price_status == "C") {
> return "Closed";
> } else {
> return item.price_status;
> }
> }
>
> For the labelFunction in the grid column you only specify the function
> name. The actual function has access to the data from the grid column.
>
> Andrew
>
--
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/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> 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/