header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
flexxx
Points:150
Posts:0
Answered

7/7/2010 7:14:50 AM

Title: tab key focus issue with item renderer


Hi..
I am using List with custom itemrenderer. I want to navigate the focus on the text areas which are created in the item renderer with the tab key.
I read the content in the following link...

http://askmeflash.com/qdetail/704/itemrenderer-s-textinput-textarea-focus-problem-on-keyboard-tab-key

But now the problem is that I am getting error on the following lines:
this.listContent.tabChildren = this.tabChildren;
this.listContent.tabEnabled = this.tabEnabled;

I am using the flex 4 and extending the List.....I think these are the only differences with problem solved in link and in my problem.

Any solution...



1
Tyson
Points: 680
Posts:0
7/7/2010 11:25:37 AM



flex 4 uses spark componenets so the spark compoenent List must not be having the above 2 properties so giving eror

2
flexxx
Points: 150
Posts:0
7/7/2010 11:20:20 PM



Then any idea about its replacement in flex 4.

3
Inder
Points: 2980
Posts:0
Accepted Answer
7/8/2010 3:08:39 AM



no need to extend the class for flex spark List component. You can set the property hasFocusableChildren to true to make children recieve the focus. set the property inside the List tag .




<s:List hasFocusableChildren="true"


4
flexxx
Points: 150
Posts:0
7/8/2010 3:59:47 AM



Thnx...that works.

5
Ahmed Raza
Points: 0
Posts:0
12/8/2010 4:42:21 PM



Inder,
Thanks a lot. I had been looking for the way around and it helps.

6
Inder
Points: 2980
Posts:0
12/8/2010 10:00:45 PM



welcome guys :)

7
Ben Humphrey
Points: 0
Posts:0
8/30/2011 9:07:11 AM



This saved me hours, thanks!

8
Pranay
Points: 0
Posts:0
10/10/2011 5:14:31 AM



I am facing a similar problem , I have a data grid I had used itemrenderer to columns , Now I want to use tab so that focus moves from one text field to next Itemrender text field , Can you please help me , I am using flex 3 .

Thanks
Pranay

9
lavanya
Points: 0
Posts:0
2/14/2012 8:37:50 AM



Hi,

I am facing the similar issue.I am using the itemRenedere in datagrid .
Can you please help me on how to move focus from one text field to other when tab key is pressed.

Thanks,
Lavanya

10
Kota
Points: 0
Posts:0
2/20/2012 2:31:14 AM



I am also facing the same problem please me out.


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 7+2 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions