RE: [flexcoders] Re: Item Renderer focus on subcomponent in List

2008-12-09 Thread Alex Harui
That sounds like you're still calling preventDefault on the keyFocusChange 
event.

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
boilerman1984
Sent: Tuesday, December 09, 2008 12:16 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Item Renderer focus on subcomponent in List


I fixed the run time error by writing a function to pass the two text
box variables back to the data provider. (ItemEditEnd=func(event);)
Fixed it. So now I can tab into the List's first component but once
focus is on the first renderer I can only tab and shift between the
two boxes in the first renderer. It's like the focus is stuck there.
Any ideas.

Here is the code I added for the ItemEditEnd function. Not sure if
that messes up tabbing and focus.

---
public function endEditRenderer(event:ListEvent):void {
event.preventDefault();

list.editedItemRenderer.data.first=
Renderer(event.currentTarget.itemEditorInstance).firstName.text);

list.editedItemRenderer.data.last=
Renderer(event.currentTarget.itemEditorInstance).lastName.text;

list.destroyItemEditor();

list.dataProvider.itemUpdated(list.editedItemRenderer);

}



RE: [flexcoders] Re: Item Renderer focus on subcomponent in List

2008-12-08 Thread Alex Harui
The list should work the same way, but I haven't tried it.  If you have a 
simple test case post it.  Also post the full text of the error you got.  Make 
sure you're using a debug build so you get line numbers.

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
boilerman1984
Sent: Monday, December 08, 2008 12:27 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Item Renderer focus on subcomponent in List


I read and followed the example on your blog about tabbing between two
text inputs in the datagrid. This is similar to that, but two text
inputs in a render of a list. I don't believe the List functions the
same way and I am having trouble transfering what I learned on that to
my situation.