[flexcoders] Re: Spark DropDownList Custom ItemRenderer Issue

2010-04-08 Thread jmfillman
I was wondering if you could post an example of what is meant by derive the visuals. I can see the same thing happening in my renderer, but I'm not sure what to do to correct it. --- In flexcoders@yahoogroups.com, azona26 azsl1326-em...@... wrote: Got it! Thanks for the additional insight as

Re: [flexcoders] Re: Spark DropDownList Custom ItemRenderer Issue

2010-04-08 Thread Alex Harui
That is discussed here (under recycling): http://blogs.adobe.com/aharui/2007/03/ On 4/8/10 4:22 PM, jmfillman jmfill...@verizon.net wrote: I was wondering if you could post an example of what is meant by derive the visuals. I can see the same thing happening in my renderer, but I'm not

[flexcoders] Re: Spark DropDownList Custom ItemRenderer Issue

2010-04-08 Thread jmfillman
I understand that itemRenderers are reused, however, my renderer always set's the label and the color, so it would seem to me that this would always overwrite what was set previously. What's causing me issue is that the items in the DropDownList display in the reverse order of the dataProvider,

Re: [flexcoders] Re: Spark DropDownList Custom ItemRenderer Issue

2010-04-08 Thread Alex Harui
Let’s get rid of creationComplete and wire up to dataChange or override the data setter and see what happens. On 4/8/10 5:23 PM, jmfillman jmfill...@verizon.net wrote: I understand that itemRenderers are reused, however, my renderer always set's the label and the color, so it would seem

[flexcoders] Re: Spark DropDownList Custom ItemRenderer Issue

2010-03-29 Thread azona26
Here's the code: s:ItemRenderer xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/mx autoDrawBackground=true height=20 creationComplete=itemrenderer_creationCompleteHandler(event) fx:Script ![CDATA[ import

Re: [flexcoders] Re: Spark DropDownList Custom ItemRenderer Issue

2010-03-29 Thread Alex Harui
The rules for itemrenderers haven’t changed that much. You must still derive all of your visuals from the data property. Use dataChange instead of creationComplete. On 3/29/10 9:32 AM, azona26 azsl1326-em...@yahoo.com wrote: Here's the code: s:ItemRenderer

[flexcoders] Re: Spark DropDownList Custom ItemRenderer Issue

2010-03-29 Thread azona26
Thanks. However switching to dataChange event causes all items in the DropDownList to change their text color. --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: The rules for itemrenderers haven't changed that much. You must still derive all of your visuals from the data

Re: [flexcoders] Re: Spark DropDownList Custom ItemRenderer Issue

2010-03-29 Thread Alex Harui
You must derive all visuals, and that means resetting the color if it doesn’t meet the criteria. On 3/29/10 10:44 AM, azona26 azsl1326-em...@yahoo.com wrote: Thanks. However switching to dataChange event causes all items in the DropDownList to change their text color. --- In

[flexcoders] Re: Spark DropDownList Custom ItemRenderer Issue

2010-03-29 Thread azona26
Got it! Thanks for the additional insight as that is exactly what I needed to do. --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: You must derive all visuals, and that means resetting the color if it doesn't meet the criteria. On 3/29/10 10:44 AM, azona26