You should populate your itemRenderer DDL when it receives data. So either add a handler to dataChange event, or override data setter
And put the updating code there Also, don't forget that renderers can be recycled, which means the same renderer instance can be reused for different rows. It will receive a new data each time, so that you can update it. Maurice -----Message d'origine----- De : Oleg Konovalov [mailto:[email protected]] Envoyé : dimanche 16 mars 2014 02:20 À : [email protected] Objet : Populating DropDownList in ItemRenderer Hi, User is editing data, so I need to populate data which is passed in DataGroup, which has ItemRenderers (corresponding to DB rows) and consists of bunch of components, including DropDownList. I am trying to populate it in ItemRenderer's creationComplete handler like that: memberDataTypeInput.selectedItem = getItemByName(parentDocument.acObjectsAndPrimitives, value.NATIVE_DATA_TYPE); which is supposed to return an Object from ArrayCollection corresponding name (from id & name pair). The problem is that ArrayCollection acObjectAndPrimitives is NULL at that point. (supposed to make a call to DB, retrieve data, remove duplicates, sort it, make an ArrayCollection out of that - fairly slow). Any idea how to resolve that? TIA, Oleg. P.S.: using Flex 4.5.1
