Set focus on Extjs textfield issue

Sometimes it helps to add a little delay when focusing. This is because certain browsers (Firefox 3.6 for sure) need a bit of extra time to render form elements.
Note that ExtJS's focus() method accepts defer as an argument, so try that:
Ext.getCmp('first_name').focus(false, 200);
    fieldLabel: 'First Name',
    name: 'first',
    id: 'first_name',
    allowBlank: false,
    listeners: {
      afterrender: function(field) {
        field.focus(false, 1000);

1 comments: said...

This site interest me a lot because of your good insight about the topic. its informative with lots of ideas
Free Downloads