PDA

View Full Version : extjs 1.x combobox listener



mnask79
17 Jun 2009, 6:14 AM
hi guys

i have problem with combobox and listener only on IE , seems it does not work and i dont know why
my script is


var symbol_combo = new Ext.form.ComboBox(
{ store: cbsymbol,
width:110,
maxHeight:100,
fieldLabel: '<?=Ebrokerage_Language::getTranslation("Symbol",$lang_id);?>',
id:'symbol',
name: 'symbol_name',
listWidth: 160,
hiddenName:'symbol_name',
displayField:'symbol_name',
valueField:'symbol_id',
typeAhead: true,
mode: 'local',
triggerAction: 'all',
listeners: {
expand : function(qe) {
alert('test');
cbsymbol.filterBy(
function(record, id){

return ( parseInt(record.get('market_id')) == parseInt(market_combo.getValue()) )
}
);
}
},
forceSelection:true,
selectOnFocus:true,
editable:false,
allowBlank:false

});



so when i expand the combobox , nothing change ..u can see that i have alert there .. it does not work .. it mean it does not see the listner
so what should i do ?

regards