Currently I got problem with setting focus on extjs textfield. When form show, I want to set focus to First name text box and I try to use build in function focus() but stil
Use afterlayout event. Set a flag on the element to prevent focusing multiple times for stability.
afterlayout
afterlayout: function(form) { var defaultFocusCmp = form.down('[name=first]'); if (!defaultFocusCmp.focused) { defaultFocusCmp.focus(); defaultFocusCmp.focused = true; } }