View Full Version : combobox list filtering issue when scrolling...

29 Sep 2015, 10:27 AM
i was able to implement list filtering just like html select however its working as long as i have focus on the textbox or down arrow button but its not working when i am using scroll on the list dropdown.. i tried to use different event on the bould list by getting combobox.getPicker() but still its not firing any events.. how can i achieve this..

xtype: 'combobox',
anchor: '100%',
itemId: 'intlPhonePrefix',
fieldLabel: 'International Prefix',
forceSelection: true,
editable: false,
name: 'IntlPhonePrefix',
displayField: 'name',
valueField: 'value',
store: 'IntlPhoneCodes',
width: 400,
enableKeyEvents: true,
listeners: {
keyup: function(combo, event) {
var key = String.fromCharCode(event.getKey()),
store = this.getStore(),
picker = combo.getPicker();
var record = store.findRecord(combo.displayField, key,
picker.highlightedItem !== undefined
&& picker.highlightedItem.innerText.startsWith(key) ? picker.indexOf(picker.highlightedItem)+1 : 0);

if (record) {
combo.focus(record.data.value, 0, null, this);

5 Oct 2015, 11:42 AM

I'm 100% understanding what you're after. Can you elaborate on what you're trying to accomplish and what isn't working? Also, if you can share a running example of the current functionality that you have, I'll be happy to test this along with you.