Results 1 to 2 of 2

Thread: combo with listeners select

  1. #1
    Ext User
    Join Date
    Mar 2010
    Posts
    21
    Vote Rating
    0
      0  

    Default combo with listeners select

    Hi, i'm trying to do this:

    I have a combo and in the select event enabled other combo if value es "MX"

    Code:
                                            listeners     :
                                            {
                                                select: function(){
                                                    var combo=Ext.getCmp('idcbo_edo_nac_alu');
    
                                                    var cadena   = this.getValue();
                                                    var vector   = cadena.split('*');
    
                                                    combo.value     =0;
                                                    combo.enabled   =false;
    
    
                                                    if(vector['1']=='MX'){//Mexico
                                                      combo.enabled=true;
                                                    }
    
                                                }
                                            }
    but, the combo2 don't enabled or don't change the value. how can i to do this?

    it's error appear me.

    "id_edo_nac_alu is not defined[IMG]chrome://firebug/content/blank.gif[/IMG]"

    thanks

  2. #2
    Ext User
    Join Date
    Mar 2010
    Posts
    21
    Vote Rating
    0
      0  

    Default

    Hi, i can do this.

    i have changed combo.enable=true and combo.value="" for this combo.enable() and combo.clearValue()


    thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •