It is probably easiest just to reset the CB's dp when the data is
available.

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of nwebb
Sent: Thursday, July 03, 2008 1:45 AM
To: [email protected]
Subject: [flexcoders] Extending the PromptArrayCollection Class (brain
freeze)

 

Hi, 

The Adobe technote provides a class for getting around the problem of
having a re-selectable prompt for a combo box:
(http://kb.adobe.com/selfservice/viewContent.do?externalId=1fecccba&slic
eId=1
<http://kb.adobe.com/selfservice/viewContent.do?externalId=1fecccba&slic
eId=1> )

I've mainly been using it like this:

<mx:ComboBox id="supplierComp"
    dataProvider="{ new PromptArrayCollection ( [ {label:'[ all ]',
data:-1} ], model.suppliers) }"/>

At the time of setting it, model.suppliers is still an empty
ArrayCollection. When it gets updated I'd like my supplierComp ComboBox
to update appropriately. I've been going round in circles. Could someone
point me in the right direction?

 

Reply via email to