I have put the following code in the datagrid and found that couple of times 
'itemEditorInstance' is null.So the focus does not move ahead.

Any pointer.. 

override protected function keyDownHandler(event:KeyboardEvent):void
        {
                // this is technically illegal, but works
                //event.ctrlKey = true;
                //event.shiftKey = false;
                trace( 'Datagerid keyDownHandler itemEditorInstance ' + 
itemEditorInstance);
                trace( 'Datagerid keyDownHandler event.target ' + event.target 
+ '\n  event.currentTarget ' +  event.currentTarget + ( event.target != 
event.currentTarget ));
                //trace("Datagerid keyDownHandler " + event.keyCode + " " +  
event.shiftKey + " " +  event.ctrlKey);
                super.keyDownHandler(event);
                trace("Datagerid keyDownHandler gefocus" + getFocus());
                trace( 'Datagerid keyDownHandler itemEditorInstance 
-------------------------------------------------------');
        }

--- In [email protected], Alex Harui <aha...@...> wrote:
>
> Add a focusIn handler on the app that displays the event.target and 
> event.relatedObject.  Maybe that will generate some clues.
> 
> 
> On 7/20/10 10:25 AM, "Rajan" <ilikef...@...> wrote:
> 
> 
> 
> 
> 
> 
> 
> Actually, i have same itemeditor in different columns.
> 
> Column1
> 1.One Tab - focus on textinput
> 2.Second Tab - focus on image.
> 
> 3.Third Tab - Don't know where does the focus goes.
> 
> Column2
> 4.Fourth Tab - focus on textinput
> 5.Fifth Tab - focus on image.
> 
> I want to fix that on third tab it show go to textinput of another column. As 
> it works for you on your sample
> 
> So how to fix this.
> 
> Thanks
> ilikeflex
> 
> --- In [email protected] <mailto:flexcoders%40yahoogroups.com> , 
> Alex Harui <aharui@> wrote:
> >
> > Your item editor has two focusable components?  Then you should have to tab 
> > twice in each column.  Are you having to tab more than that?
> >
> >
> > On 7/20/10 7:03 AM, "Rajan" <ilikeflex@> wrote:
> >
> >
> >
> >
> >
> >
> > Hi
> >
> > http://blogs.adobe.com/aharui/category/item-renderers
> >
> > http://blogs.adobe.com/aharui/DataGridMultiFieldEditor/DataGridMultiFieldEditorTest.swf
> >
> > I looked to this example and i am using the custom item editor. My 
> > itemeditor has two components( text input + image ). Everything works fine 
> > and i am able to navigate through the componnets in the item editor using 
> > key board also. I have exactly same piece of the code as in url.
> >
> > The problem i am facing is that i have to press Tab Key multiple times to 
> > move form one datagrid column to another if both the column has same custom 
> > itemeditor.
> >
> > Any pointers???
> >
> >
> >
> >
> >
> >
> > --
> > Alex Harui
> > Flex SDK Team
> > Adobe System, Inc.
> > http://blogs.adobe.com/aharui
> >
> 
> 
> 
> 
> 
> 
> --
> Alex Harui
> Flex SDK Team
> Adobe System, Inc.
> http://blogs.adobe.com/aharui
>


Reply via email to