Anyone from Adobe please comment?
here's a little test example. All you need to do is change the dg
attribute sortableColumns=false | true.
and double click the header. i believe the itemDoubleClick event
should not be triggered when sortableColumns=false
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:DataGrid doubleClickEnabled="true"
itemDoubleClick="mx.controls.Alert.show('item double
clicked')"
sortableColumns="false">
<mx:dataProvider>
<mx:Array>
<mx:Object Company="a" Contact="1"/>
<mx:Object Company="b" Contact="2"/>
<mx:Object Company="c" Contact="3"/>
</mx:Array>
</mx:dataProvider>
<mx:columns>
<mx:DataGridColumn dataField="Company" />
<mx:DataGridColumn dataField="Contact" />
</mx:columns>
</mx:DataGrid>
</mx:Application>
--- In [EMAIL PROTECTED]ups.com,
"bhaq1972" <[EMAIL PROTECTED]> wrote:
>
> i have a datagrid with the following attributes.
>
> <mx:DataGrid doubleClickEnabled="true" sortableColumns="false"
> itemDoubleClick="mx.controls.Alert.show('item double
clicked')">
>
> i'm finding that if i doubleClick the header, i'm getting the
> itemDoubleClick evnt being trigged.
>
>
> is this the correct behaviour.
>
> (i'd assume not)
>
> please verify
>
>
> regards
> bod
>