When the focus moves to the selected cell, the ComboBox shows up?

 

If the renderer is not an extended Label do you still see the problem?

 

Is there no way to make a simple DG using your extended renderer and
editor and post it?

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of j_lentzz
Sent: Wednesday, November 07, 2007 5:03 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Bouncing Focus in DataGrid

 

Sorry about that. The editor is an extended ComboBox. The renderer 
is an extended Label. Clicking on a cell in the datagrid makes the 
first cell on the first row briefly get the focus, then the focus 
moves to the selected cell. It only does this the very first time 
you click in the grid - either after initially loading it with data, 
or after adding a row to it. After the first click, it does not 
briefly go to the first cell on the first row.

I hope this is clearer. I appreciate the help.

John
--- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> OK, I'm lost. Please re-state your findings so far. Note also 
that if
> your ComboBox editor is wrapped by a Container it isn't a true
> IFocusManagerComponent
> 
> 
> 
> ________________________________
> 
> From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>

[mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
] On
> Behalf Of j_lentzz
> Sent: Wednesday, November 07, 2007 9:14 AM
> To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 
> Subject: [flexcoders] Re: Bouncing Focus in DataGrid
> 
> 
> 
> Sorry, I mistyped my last response. The Label is the renderer - not
> editor. I have the Label (or the extended version 
LabelWithDownArrow)
> as the renderer. The editor is my extended ComboBox. So, I'm not
> editing with a Label, but I am clicking on it to switch to the 
ComboBox.
> 
> John
> --- In flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com>  <mailto:flexcoders%
40yahoogroups.com>
> , "Alex Harui" <aharui@> wrote:
> >
> > If the editor is not an IFocusManagerComponent, it is not 
a 'legal'
> > editor.
> > 
> > 
> > 
> > ________________________________
> > 
> > From: flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com>  <mailto:flexcoders%
40yahoogroups.com>
> [mailto:flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com>  <mailto:flexcoders%
40yahoogroups.com>
> ] On
> > Behalf Of j_lentzz
> > Sent: Wednesday, November 07, 2007 4:39 AM
> > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
<mailto:flexcoders%
40yahoogroups.com> 
> > Subject: [flexcoders] Re: Bouncing Focus in DataGrid
> > 
> > 
> > 
> > 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
<mailto:flexcoders%40yahoogroups.com> 
> <mailto:flexcoders%40yahoogroups.com>
> <mailto:flexcoders%40yahoogroups.com>
> > , "Alex Harui" <aharui@> wrote:
> > >
> > > Can you post a small test case?
> > > 
> > > 
> > > 
> > > ________________________________
> > > 
> > > From: flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com> 
> <mailto:flexcoders%40yahoogroups.com>
> <mailto:flexcoders%40yahoogroups.com>
> > [mailto:flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com> 
> <mailto:flexcoders%40yahoogroups.com>
> <mailto:flexcoders%40yahoogroups.com>
> > ] On
> > > Behalf Of j_lentzz
> > > Sent: Tuesday, November 06, 2007 3:41 PM
> > > To: flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com>  <mailto:flexcoders%
40yahoogroups.com>
> <mailto:flexcoders%40yahoogroups.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> 
> <mailto:flexcoders%40yahoogroups.com> 
> > <mailto:flexcoders%40yahoogroups.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%40yahoogroups.com> 
> > <mailto:flexcoders%40yahoogroups.com> 
> > > <mailto:flexcoders%40yahoogroups.com> 
> > > [mailto:flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com> 
> <mailto:flexcoders%40yahoogroups.com> 
> > <mailto:flexcoders%40yahoogroups.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> 
> <mailto:flexcoders%40yahoogroups.com> 
> > <mailto:flexcoders%40yahoogroups.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
> > > > >
> > > >
> > >
> >
>

 

Reply via email to