Thanks a lot.
--- In [email protected], "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> This blog article may help:
>
http://blogs.adobe.com/aharui/2008/03/datagrid_doubleclick_to_edit.htm
l
>
>
>
> ________________________________
>
> From: [email protected]
[mailto:[EMAIL PROTECTED] On
> Behalf Of tungchau81
> Sent: Thursday, March 13, 2008 11:21 AM
> To: [email protected]
> Subject: [flexcoders] Re: How to associate a double click with item
> editting in AdvancedDataGrid
>
>
>
> I tried to override the mouseUpHandler function to remove the code
> section that dispatches itemEditBeginning event. However, there
were
> many private variables in mouseUpHandler function; therefore, I
could
> not successfully overwrite this function.
>
> Basically, I need to disable item editting session for a single
mouse
> click, but enable the edit session for a double click. I have been
> thinking about this issue for one week already and still have not
> been able to come up with a solution.
>
> Any advice or idea is greatly appreciated.
> Tung Chau
>
> --- In [email protected] <mailto:flexcoders%
40yahoogroups.com>
> , "tungchau81" <tungchau81@>
> wrote:
> >
> > Hi everybody,
> > In my AdvancedDataGrid which has grouping, I set "editable"
> property to
> > be either "true" or "item" in order to make it editable. I also
> > set "editable" property to be "true" for the first column,
> and "false"
> > for the rest of the columns.
> >
> > A single click of the mouse on any item in the first column will
> make
> > the item editable. The Text Input editor will appear. I looked at
> the
> > source code and realized that Flex developers handled this case
in
> a
> > mouseUpHandler function. I wonder if there is anyway I can
> associate
> > a "doubleClick" with item editting capability. I do not want item
> > editing to happen with a single click.
> >
> > Should I listen to the doubleClick event or overwrite
> mouseUpHandler
> > function?
> >
> > Thanks in advance. Any advice is greatly appriciated.
> > Tung Chau
> >
>