Yaagcur, sorry I missed the '2.0'.

Joan, I dont think the code works for us. I tried the code that u sent.
Even after correcting some fatal errors that the builder throws up, the cellPress event does not work. And it does work with 'editable' enabled.

It is possible that you are testing against a later build that we do not have the luxury of.

Regards
Sree

Joan Tan wrote:
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: [email protected] [mailto:[email protected]] On
Behalf Of yaagcur
Sent: Tuesday, December 20, 2005 3:19 PM
To: [email protected]
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="">

--- In [email protected], 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 [email protected], "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









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