This thread helps me a lot but i've a problem with a reference error.
I'm using 4.1.1 and Architect, this is my code
In myView:
PHP Code:
{
xtype: 'combobox',
onTriggerClick: function(e) {
this.fireEvent("ontriggerclick", this, event);
},
itemId: 'ricChiam',
fieldLabel: 'Chiamante',
labelWidth: 60,
hideTrigger: false,
triggerCls: 'x-form-clear-trigger',
displayField: 'chiamante',
store: 'StoreChiamanti',
valueField: 'id'
}
In myControler onLaunch function:
PHP Code:
this.getRicercaChiamanteFiltri().on({
'select': this.funcion1,
'ontriggerclick': this.function2,
scope: this
});
select event works properly (function1) in firebug i've an error 'ontriggerclick' "event is not defined"