Evyatar - you get the gold medal.
If I cache the last row index and last col index, then check that these
haven't changed, then it seems to work, I can scroll without it causing the
recycled itemrenderers to trigger (azeh yofie).

Here is what I have (I wish I knew why it works):


<?xml version="1.0" encoding="utf-8"?>
<s:GridItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009";
                                        
xmlns:s="library://ns.adobe.com/flex/spark"
                                        width="400"
                                        height="300"
                                        >
        <fx:Style>
                @namespace s "library://ns.adobe.com/flex/spark";
                @namespace common "view.components.common.*";
                .on {
                        backgroundColor: red;
                }
                .off {
                        backgroundColor: white;
                }
        </fx:Style>
        <fx:Script>
                                
        </fx:Script>

        <s:Label id="labelDisplay"
                         height="22"
                         width="75"
                         verticalAlign="middle"
                         textAlign="right"
                         styleName="off"
                         />

</s:GridItemRenderer>




--
View this message in context: 
http://apache-flex-users.2333346.n4.nabble.com/Best-way-to-blink-a-Spark-Datagrid-cell-tp9334p9346.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Reply via email to