Flex selectCombobox()
Problem: You programmically are selecting an item from a combobox.
Solution: The function below! Pass the combobox, column you're matching, and the value to match on.
if( value == null )
return;
for( var i:int=0; i<cb.dataProvider.length; i++ ){
if( value == String(cb.dataProvider[i][column]) ){
cb.selectedIndex = i;
break;
}
}
}


There are no comments for this entry.
[Add Comment]