I tried the following simple dataGrid that is not editable and the cellPress event is triggered. Are you seeing something different? If so, please send the code along.
<?xml version="1.0" encoding="iso-8859-1"?> <mx:Application xmlns:mx="http://www.macromedia.com/2005/mxml" creationComplete="initDG()"> <mx:Script> <![CDATA[ function initDG() { myDataGrid1.dataProvider = [ { Artist:'Pavement', Album:'Slanted and Enchanted' }, { Artist:'Pavement', Album:'Crooked Rain, Crooked Rain'}, { Artist:'Pavement', Album:'Wowee Zowee' }, { Artist:'Pavement', Album:'Brighten the Corners' }, { Artist:'Pavement', Album:'Terror Twilight'}, { Artist:'Other', Album:'Other'} ]; ti1.text = ""; } private function doTest(event):void { ti1.text= event.type + " event Triggered"; } ]]> </mx:Script> <mx:DataGrid id="myDataGrid1" cellPress="doTest(event)"/> <mx:TextInput id="ti1" /> </mx:Application> -----Original Message----- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of yaagcur Sent: Tuesday, December 20, 2005 3:19 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Why is editable="true" necessary to allow cellPress events (2.0) Well not those docs certainly as I'm talking flex 2 (see title) This appears more relevant http://livedocs.macromedia.com/labs/1/flex/wwhelp/wwhimpl/js/html/wwhelp .htm?href=00001531.html --- In flexcoders@yahoogroups.com, Sreejith Unnikrishnan <[EMAIL PROTECTED]> wrote: > > Open the livedocs .. > http://livedocs.macromedia.com/flex/15/asdocs_en/ > > Click on DataGrid > Scroll Down to the end of the page > Look at the second sample ... > > I bet you didnt bother to check the docs first! > > > yaagcur wrote: > > > Really? > > I just checked my application > > editable="false" clicking gets no action > > editable="true" clicking performs as required > > > > --- In flexcoders@yahoogroups.com, "Joan Tan" <[EMAIL PROTECTED]> wrote: > > > > > > Its not required for editable="true" to get cellPress events. > > > > > > > > > > > > - Joan > > > > -- 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 ------------------------ Yahoo! Groups Sponsor --------------------~--> AIDS in India: A "lurking bomb." Click and help stop AIDS now. http://us.click.yahoo.com/9QUssC/lzNLAA/TtwFAA/nhFolB/TM --------------------------------------------------------------------~-> -- 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/