The Same LabelFunction for DataGrid and ComboBox
In Flex, some label functions accept two arguments, i.e. item and column in a datagrid, and some accept one, i.e. item in a combobox. If you're not using the data from the column, which is typically just the dataField anyway, then you don't need two labelFunctions. The easiest way to fix the problem is by making the column field optional.
private function fullName(item:Object,dgc:DataGridColumn=null):String{
return item.FIRST_NAME+" "+item.LAST_NAME;
}
Just add "=null" and you're done!













Recent comments
1 week 3 days ago
8 weeks 1 day ago
13 weeks 6 days ago
15 weeks 3 days ago
15 weeks 6 days ago
16 weeks 24 min ago
16 weeks 33 min ago
19 weeks 3 days ago
20 weeks 4 days ago
20 weeks 4 days ago