I am trying to do a simple datagrid in Flex with a doubleclick event, but I cannot get itemDoubleClick
to fire:
<mx:DataGrid id="gridReportConversions" height="100%" width="100%" mouseEnabled="true" doubleClickEnabled="true" itemDoubleClick="refererRowDoubleClicked(event)">
<mx:columns>
<mx:DataGridColumn width="75" dataField="qty" headerText="Qty" />
<mx:DataGridColumn dataField="referer" headerText="URL" />
</mx:columns>
</mx:DataGrid>
If I use the itemClicked
event then the event is raised just fine. When I search for this problem I find many people saying 'you need to set doubleClickEnabled=true
, but I've done that and it still doesn't work.
This control is nested within quite a few levels of VBox and other containers. Surely I dont need to set doubleClickEnabled
on each of those containers do I?
Just to clarify how I tested this - I have an alert box in my refererRowDoubleClicked
event handler and it never gets shown when I use itemDoubleClick