This content has been marked as final. Show 4 replies
I believe that what you want is a value aware combo box. In flex you need to do a little work to get this done but it is preaty easy once you understand it. Read this link ... it does a good job of explaining.
Thanks for your response.
I believe you are correct in that a value aware combo box would solve my problem.
The code in accomplshing this is over my head so I think I will retain someone to do it for me.
Thanks again for your response.
Actually, doing this in a "one-off" situation is quite easy.
Say you have a value you want to set the Combo box to. You loop over the comboBox dataProvider and compare your value to the values in the appropriate property of each dataProvider item. If there is a match, you use the loop index to set the ComboBoxes selectedIndex.
The examples you will see are more complex because they try to do this generically. You know which item property has yur value so you can just compare it.
Post your ComboBox and dataProvider and I'll help.