[flexcoders] combobox fills in with blank element

2008-07-11 Thread netdeep
I have an ArrayCollection which is the dataProvider for a combobox in a custom 
component.  
However the ArrayCollection is located in the application so I assign it to the 
custom 
component via actionscript in the component.  

When I call addItem on the ArrayCollection the items go into the combobox, 
however the 
first element is always blank.  How can I can get rid of this and get the 
combobox to add only 
the items I am adding to the ArrayCollection?





RE: [flexcoders] combobox fills in with blank element

2008-07-11 Thread Alex Harui
Show your code.  Last time, someone was inadvertently putting a space
into the CB's dataProvider

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of netdeep
Sent: Friday, July 11, 2008 5:48 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] combobox fills in with blank element

 

I have an ArrayCollection which is the dataProvider for a combobox in a
custom component. 
However the ArrayCollection is located in the application so I assign it
to the custom 
component via actionscript in the component. 

When I call addItem on the ArrayCollection the items go into the
combobox, however the 
first element is always blank. How can I can get rid of this and get the
combobox to add only 
the items I am adding to the ArrayCollection?