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.
Byte_Head
Points:50
Posts:0
Answered

9/6/2010 2:20:32 AM

Title: Focus on single Cell in Data Grid.


Hi All,

How can i set focus only on the cell over which my mouse pointer is pointing in DataGrid.

Regards,
Byte_Head



1
Shawn
Points: 680
Posts:0
9/6/2010 3:03:19 AM



in the grid item renderer add an over listener and in in the event listener function set the focus
stage,setFocus(this)

2
Byte_Head
Points: 50
Posts:0
9/6/2010 4:20:09 AM



Thanks Shawn...

But it is not working... actually setFocus for stage.. i am not getting.

3
Andrid
Points: 720
Posts:0
9/6/2010 4:22:29 AM



it should be this.setFocus()

4
Byte_Head
Points: 50
Posts:0
9/6/2010 4:29:18 AM



Thanks Andrid, but i am using a custom Label as my item Renderer.
And this.setFocud is also not working with this.. :(

5
Byte_Head
Points: 50
Posts:0
Accepted Answer
9/7/2010 5:40:38 AM



i have solved the problem.

I have used the opaqueBackground property of the Label, and am setting and reseting it on
mouse over and mouse out. :)

6
Flash_Guy
Points: 830
Posts:0
9/7/2010 6:36:22 AM



I think you are mistaking focus with highlight, You wanted to highlight the cell and not focus, focus is a technical word in flash which means that you want the cursor to be there.

7
Byte_Head
Points: 50
Posts:0
9/7/2010 9:51:48 PM



Thanks Flash_Guy,

As i am new to Flex, that might be the reason. Sorry for the Confusion created.


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 2+4 



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