PDA

View Full Version : Extjs superboxselect keyup event is not firing



rematnarab
28 Jun 2012, 4:18 AM
i am using superboxselect for one of my projects. I need to perform some additional filtering. Therefore i need to be able to do it in the keyup event. But i can not get it to work


var test = new Ext.ux.form.SuperBoxSelect( {
applyTo : 'testId',
id : 'test',
allowBlank : true,
msgTarget : 'title',
xtype : 'superboxselect',
resizable : true,
hiddenName : 'statesHidden[]',
width : 300,
store : somestore,
mode : 'local',
displayField : 'name',
valueField : 'code',
classField : 'cls',
styleField : 'style',
extraItemCls : 'x-flag',
extraItemStyle : 'border-width:2px',
stackItems : true,
listeners : {'keyup' : testFunction}
});

function testFunction(){
alert("hola");
}

scottmartin
28 Jun 2012, 8:05 AM
Have you tried adding: enableKeyEvents:true

Scott.