0 Replies Latest reply on Sep 3, 2009 12:52 PM by Kisil

    ADG itemClick - how do I get callbacks from clicked icons?

    Kisil

      I have an AdvancedDataGrid with click handlers and icons:

      <mx:AdvancedDataGrid
              click="clickHandler(event);"
              itemClick="itemClicked(event);"
              iconFunction="customIconFunction">

       

      A click anywhere else on a row triggers both click handlers, but a click on an icon triggers neither.  When I do user tests, my users always click on the icon at first, and are slow to learn that they need to click elsewhere in the row.  How do I generate a callback when the icon is clicked?


      This thread seems related, except I'm not sure how to create a custom renderer just for the icon - should customIconFunction return something more advanced?  Right now it returns [Embed]-ed icons as Class.

       

      Thanks for any help.