2 Replies Latest reply on Dec 9, 2011 2:43 AM by Francisc

    List with Custom MXML itemRenderer DP change problem

    Francisc Level 3



      I have a Spark List with a custom MXML itemRenderer which has two states.

      One or the other is used based on a data.isTrue property, like so:


      override protected function getCurrentRendererState():String


          if(data.isTrue){return 'TrueState';}

          return 'FalseState';




      When data.isTrue is true, the TrueState is set which has a small arrow on the right side.

      When the dataProvider is changed to a new collection, it renders all the data correctly, except the image which still is visible where isTrue was true for the previous dataset.

      On Hover, the arrow goes away.


      How can I fix this please?