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
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)
9/6/2010 4:20:09 AM
Thanks Shawn...
But it is not working... actually setFocus for stage.. i am not getting.
9/6/2010 4:22:29 AM
it should be this.setFocus()
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.. :(
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. :)
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.
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.