1 Reply Latest reply on Sep 17, 2009 12:36 PM by paul.williams

    Multiple renderers in a List control get confused when scrolling list.

    DavidW-CA

      Hello Flex users,

      I have implemented a List control that that uses 4 different renderes based on the contents of the list data to be displayed. When the List is intitially displayed, the renderers work correctly. The problem occurs when the list gets scrolled, all the renderers get mixed up within the list. From other research this seems to happen because of renderer reuse, but there has not been any good solutions suggested.

       

      It would be appreciated if any solutions could be recommended.

       

      Here are some Implementation details -

       

      I have assigned a custom drop in renderer to a List ( not an extended class just mx:List)

      The custom renderer conains a custom control that uses the data to decide what to draw (text, textinput, icon).

       

      Thanks,

      David