1 Reply Latest reply on Apr 30, 2007 11:44 AM by peterent

    Recreate itemRenderers inside DataGrid

      I am using Datagrid to show dynamic data using itemRenderers.
      The problem I am facing is that whenever the data is changed, the changedb data is reflected on in the renderers but the properties of the renderer remain the same.
      is there a way that renderers are recreated everytime the data is changed.

        • 1. Re: Recreate itemRenderers inside DataGrid
          peterent Level 2
          Re-creating itemRenderers whenever the data changed would be a performance hit; the job of an itemRenderer is to look at the data to be presented and then modify its appearance to present the data.

          You don't say what properties you are talking about, but your itemRenderer should override the data setter function and then you can set up properties. The itemRenderer can also override updateDisplayList to take those new values and make the UI change appearance.