Hey guys, I found a nasty one.. Flex2 Beta1, FES compiled, I.E. 6.0

On a DataGrid when I call event.preventDefault(); from the handler of
a cellRequestEdit event, it crashes flash, and then IE.

below is the app I'm using to verify.

Thunder

//-----------------------
<?xml version="1.0" encoding="iso-8859-1"?>
<mx:Application
xmlns:mx="http://www.macromedia.com/2005/mxml";
width="600" height="600" >
<mx:Script>
<![CDATA[
import mx.controls.gridclasses.*;
import mx.events.DataGridEvent;
[Bindable]
public var
myarr:Array=[{description:"one",product:"false"},{description:"one",product:"true"},{description:"one",product:"false"},{description:"one",product:"true"},{description:"one",product:"false"},{description:"one",product:"true"},{description:"one",product:"true"},{description:"one",product:"true"},{description:"one",product:"true"},{description:"one",product:"false"},{description:"one",product:"true"},{description:"one",product:"true"}]

public function requestEdit(event:DataGridEvent):void
{
        event.preventDefault();
}

]]>
</mx:Script>
     <mx:DataGrid dataProvider="{myarr}" id="myDataGrid2" width="100%"
height="250" variableRowHeight="true" wordWrap="true" editable="true"
dropEnabled="true" cellRequestEdit="requestEdit(event)" >
           <mx:columns>
            <mx:Array>
             <mx:DataGridColumn headerText="Column4"
columnName="product" cellRenderer="mx.controls.CheckBox"
editable="true" isCellEditor="true" editorProperty="selected" />
             <mx:DataGridColumn headerText="Column5"
columnName="description" cellRenderer="mx.controls.TextInput"
editable="true" isCellEditor="true"  />
             <mx:DataGridColumn headerText="Price" visible="true"
columnName="price" />
            </mx:Array>
   </mx:columns>
   </mx:DataGrid>
</mx:Application>






--
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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to