Saturday, July 26, 2008

ComboBox.selectedValue


-edit- other implementation here


more than once I needed a ComboBox component to automatically (with bindings and all) select an item based on one of its property value.

specially when using E4X, I wanted to select an item based on some property value of a XMLList node.
so I extended the ComboBox, and added a 'dataField' (similar to 'labelField') and a 'selectedValue' property to it

example
source

No comments: