PDA

View Full Version : combo with listeners select



crasho
6 Apr 2010, 12:04 PM
Hi, i'm trying to do this:

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



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 definedchrome://firebug/content/blank.gif"

thanks

crasho
7 Apr 2010, 11:21 AM
Hi, i can do this.

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


thanks