9/1/2010 3:27:26 AM
Title:
Focus related Problem in itemEditor
Hi All,
I have created an itemEditor, which consist an TextBox and a button
inside an HBox. When ever i am clicking on the cell, the itemEditor is
shown. The problem that i am facing is regarding the focus. After the
click the focus remains on the TextBox only for a fraction of second.
What i want is that just like simple textBox that can be taken as
itemEditor, the focus sould maitain on my itemEditor as well.
Please help me in this regard.
Rayan
Points: 690
Posts:0
9/1/2010 8:20:07 AM
there is a property to enable the focus for children in list component. Setting this property enable children to receive focus
<s:List hasFocusableChildren="true"
this should work
Davis
Points: 740
Posts:0
9/1/2010 7:04:10 PM
I think you can set the focus of textbox inside your item renderer on click event of item renderer.
9/2/2010 9:44:23 PM
Thanks a lot for your kind help.
The problem is solved now.
I have implemented IFocusMangerComponent and overriden the setFocus() function to
set the focus to the TextBox.