I am working with some a combo and the custom component listing the states works perfectly fine for simply saying: selectedItem="{items.selectedItem.state}". It will change and work as expected (when the grid is clicked).

Well, that component is nothing but a mx:dataProvider with <mx:String> values inside. So the selectedItem is a string (when calling mycombo.selectedItem) as opposed to an object.

My question is, when you have an object as the dp to a combo (or any other component with selectedItem) how do you set the selected item without doing a loop + if to find the proper selectedIndex?

Thanks,

--
John C. Bland II
"I do what I can do when I can do it." - Chris Tucker, Money Talks

http://www.gotoandstop.org - Home of FMUG.az

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to