Text Field Focus fires blur automatically

  1. #1

    Text Field Focus fires blur automatically

    I have editable gridpanel which has four columns and one of row is having text fields which we are creating dynamically. Now the issue is when we click on text field it gets focus and then blur is fired automatically. Due to this we are not able to edit value in text field as blur is fired after focus and cursor is not shown to text field.
    Code to render text fields in row is given below
                                var txtage= new Ext.form.TextField({
                                    width: 80,
                                    minLength: 1,
                                    allowBlank: false,
                                    validator: function (v) {
                                        return validateAge(v, true);
                                    },
                                    listeners: {
                                           render: function(cmp) 
                                            { 
                                               cmp.getEl().on('click',function(){
                                               this.dom.focus();
                                              });
                                             }
                                    },
                                    applyTo: 'ctl_' + i + '_' + j
                                });
                                fieldsToValidate += ',' + txtage.getEl().id;
    Its urgent...Please help me!!!
  2. #2
    Hello!

    Can you provide runable simplified sample of your problem?

Similar Threads

  1. Replies: 2
    Last Post: Nov 09, 2012, 3:23 PM
  2. Replies: 1
    Last Post: Feb 24, 2012, 5:39 AM
  3. htmleditor missing listeners for focus and blur
    By craig2005 in forum 1.x Help
    Replies: 4
    Last Post: Jan 14, 2011, 9:33 PM
  4. [CLOSED] ComboBox Blur or Lose Focus
    By Steve in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jul 03, 2009, 3:55 AM
  5. Replies: 0
    Last Post: Jun 03, 2009, 3:14 PM

Posting Permissions