2 Replies Latest reply on Feb 26, 2008 12:19 AM by aligned2009

    Events and AdvancedDataGridRendererProvider

    aligned2009 Level 1
      <mx:rendererProviders>
      <mx:AdvancedDataGridRendererProvider
      column="{someCol}" id="myRenderer"
      renderer="util.TheRenderer"/>
      </mx:rendererProviders>

      if I use

      myRenderer.addEventListener("customEvent", function2call);

      I get the error:

      1061: Call to a possibly undefined method addEventListener through a reference with static type mx.controls.advancedDataGridClasses:AdvancedDataGridRendererProvider.

      How do I look for events in the itemRenderer that is created by the characteristics defined in myRenderer?? How do I get the instance of the itemRenderer at that scope?

      Thanks in advance.