Your renderer has to implement IFocusManagerComponent and use setFocus
to pass focus to the internal numericsteppers.  It must use the
KEY_FOCUS_CHANGE event to catch TAB and call preventDefault then switch
focus to the other numericstepper.
 
Maybe I'll find time for an example.  This question comes up a lot.

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Claudiu Ursica
Sent: Friday, August 01, 2008 5:35 AM
To: [email protected]
Subject: [flexcoders] Tabbing children from custom item renderer inside
List



Hi,

I have a List, whose dataprovider is loaded from a server. The list is
using a custom itemRenderer to render data. The renderer has amongst
other things 2 numeric steppers inside it. The list can have durin
execution none, one or many items. I want to be able to use tab and go
through the the list items (to be more specific to jump from first
numeric stepper in the renderer to the second, and then go to the next
item first numreic stepper and then second numeric stepper and then
third item first numeric stepper etc.)

This is easily accomplished with a repeater but seems impossible for
me to achieve it with the list.

Any help is apreciated.

the code snippet looks something like this:

<mx:List id="draftBackBetList"
tabEnabled="true"
dataProvider="{model.user.listItems}"
selectable="false"
rowHeight="{28}"
itemRenderer="com.core.view.CustRenderer">
</mx:List>

cust item renderer

.....

<mx:NumericStepper id="stepperOne"
minimum="{Constants.MINIMUM_PRICE}"
maximum="{Constants.MAXIMUM_PRICE}"
width="46"
height="20"
cornerRadius="3"
backgroundColor="white"
borderStyle="solid"
borderThickness="0"
tabEnabled="true"
</mx:NumericStepper>

<mx:NumericStepper id="stepperTwo"
minimum="{Constants.MINIMUM_PRICE}"
maximum="{Constants.MAXIMUM_PRICE}"
width="46"
height="20"
cornerRadius="3"
backgroundColor="white"
borderStyle="solid"
borderThickness="0"
tabEnabled="true"
</mx:NumericStepper>

TIA,
Claudiu



 

Reply via email to