© 1985-Current, Jonathan Rowny
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 day 16 hours ago
4 weeks 1 day ago
6 weeks 3 days ago
7 weeks 2 days ago
7 weeks 2 days ago
16 weeks 6 days ago
17 weeks 1 day ago
17 weeks 2 days ago
19 weeks 10 hours ago
24 weeks 2 days ago