When the editor is up, the DG is no longer listening for arrows keys, so
passing them to the DG won't help.  You can get the editedItemPosition,
and set a new editedItemPosition instead

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of markgoldin_2000
Sent: Tuesday, January 22, 2008 7:38 AM
To: [email protected]
Subject: [flexcoders] Re: Editable DataGrid and keyboard navigation

 

Here is code I am trying in item editor:
addEventListener(KeyboardEvent.KEY_DOWN, KeyDown);

public function KeyDown(eventObj:KeyboardEvent):void
{
this.parent.dispatchEvent(eventObj);
}
but nothing happens when I press DOWN key.

--- In [email protected] <mailto:flexcoders%40yahoogroups.com>
, yigit <[EMAIL PROTECTED]> wrote:
>
> write your own item editor; (possibliy extend text)
> in it; listen key events;and when the user presses up or down keys;
> dispatch parent.key event...
> 
> i'm not sure but it should work... (i hope)
> 
> markgoldin_2000 wrote On 01/22/2008 04:27 PM:
> >
> > If a DataGrid is editable then when I click on a cell I cannot 
navigate
> > out of the cell using up and down keys. Is that correct? Is there 
a way
> > to have navigation working in the editable grid just like it 
works in a
> > readonly one?
> >
> > Thanks
> >
> >
>

 

Reply via email to