RE: [flexcoders] Re: Detecting iterations in item render

2009-02-28 Thread Alex Harui
More specifically, for a DataGrid: If (((DataGrid(this.owner).verticalScrollPosition + listData.rowIndex) % 2) == 1) Alex Harui Flex SDK Developer Adobe Systems Inc. Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] O

RE: [flexcoders] Re: Detecting iterations in item render

2009-02-27 Thread Alex Harui
In theory, you can know if the row is odd or even given the calculation I showed and choose your backgroundImage accordingly. Alex Harui Flex SDK Developer Adobe Systems Inc. Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroup

RE: [flexcoders] Re: Detecting iterations in item render

2009-02-27 Thread Alex Harui
If you implement IDropInListItemRenderer, then listData.rowIndex + owner.verticalScrollPosition should be your position Alex Harui Flex SDK Developer Adobe Systems Inc. Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]