Unfortunately not, it is a dynamically created datagrid. However, I did discover some interesting things. If I use my custom renderer and set rendererIsEditor=true, it doesn't do the bouncing focus thing. If I go back to my original code and set the renderer as a TextInput, it doesn't do the bouncing thing. When I set the editor to either a Label or my LabelWithDownArrow (an extended Label with the combobox down arrow), I get the bouncing focus. Could it somehow be because a Label isn't editable? If so, any ideas how to get around it?
Thanks a lot. John --- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote: > > Can you post a small test case? > > > > ________________________________ > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of j_lentzz > Sent: Tuesday, November 06, 2007 3:41 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Re: Bouncing Focus in DataGrid > > > > It happens also when I first populate the datagrid or add a row. In > either case, nothing is selected in the datagrid. When I select > something, the top most left cell briefly gets the focus and switches > the component to an editor then back to a renderer and then the > selected item becomes an editor. > > John > --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > , George <yahoo@> wrote: > > > > When you add a new row, dataProvider changed so DG will be refreshed > > totally, your item editing process will be eliminated at that time. > > You need a callLater() to reselect .selectedIndex to the new row, it > > will be highlighted. Then try to move focus back to the renderer. > > > > George > > > > Alex Harui wrote: > > > Are the renderers also editors? rendererIsEditor="true". If so, > is the > > > renderer an IFocusManagerComponent? > > > ________________________________ > > > > > > From: flexcoders@yahoogroups.com > <mailto:flexcoders%40yahoogroups.com> > [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > ] On > > > Behalf Of j_lentzz > > > Sent: Tuesday, November 06, 2007 6:06 AM > > > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > > > > Subject: [flexcoders] Bouncing Focus in DataGrid > > > > > > Hello All, > > > > > > I have an app that allows the user to add rows to a datagrid. The > > > rows contain components that have separate item editors and > renderers. > > > What is happening is that after a new row is added to the datagrid > > > and the user clicks on a cell that is not the first cell in the > first > > > row, the focus briefly goes to the first cell in the first row and > > > then to the actual cell selected. It doesn't stay there long, but > > > long enough to see the cell switch to the item editor and then back > to > > > the renderer. Has anyone else seen this or have a way to prevent it? > > > > > > Thanks, > > > > > > John > > > > > >