thursday
11 Oct 2011, 4:54 AM
I see that Window.setFocusWidget(Widget) is used to receive the focus. It works perfectly fine!.
But how do I set focus to a widget which is added to the non window containers such as ContentPanel
or LayoutContainer?.
The following example does not have default focus. One has to click text field to start editing.
http://www.sencha.com/examples/pages/forms/forms.html
I tried widget.focus(), widget.el().focus() after the component is rendered. But still the focus is not working.
But how do I set focus to a widget which is added to the non window containers such as ContentPanel
or LayoutContainer?.
The following example does not have default focus. One has to click text field to start editing.
http://www.sencha.com/examples/pages/forms/forms.html
I tried widget.focus(), widget.el().focus() after the component is rendered. But still the focus is not working.