What’s the information contained in the event when you get the itemDoubleClicked?  I can forward this in as a potential bug, but if you have that info it’d be helpful.

 

Matt

 


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bhaq1972
Sent: Tuesday, August 15, 2006 3:04 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: flex2 final - datagrid sortableColumns=false and itemDoubleClick event issue

 

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
>

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





YAHOO! GROUPS LINKS




__,_._,___

Reply via email to