dataProvider is typed as Object so code-hint doesn't help. It is an IList so
there is addItem
Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf
Of kotha poornima
Sent: Monday, February 16, 2009 3:02 AM
To: flexcoders
Subject: [flexcoders] Statically adding one more item to the dynamically driven
combobox dataprovider.
Hi All,
In my project i have a combobox in which i need to add dynamic values from the
xml file and in addition i need to add one static value All to the combobox
dataprovider.
For combobox dataprovider iam directly giving xml values like this:
usecases1.dataProvider=cbolXML.Market[0].child(UseCase).attributes();
usecases1 is nothing but combobox and cboxXML is an xml file from which iam
reading the data's for the combobox.
SO, here how can i add one more static value All to the above data coming
from the xml file.
i dont find any addItem or push methods for combobox dataprovider.
If i am using arraycollection or array its not giving the correct data but its
appending ALL to the data from the xml.
Anyone can help me out of this.
Thanks in Advance,
Poornima