PDA

View Full Version : Combobox no longer working (after upgrading from 2.x to 3.3)



jd2
9 Aug 2010, 2:53 AM
Hello All,

after upgrading from ExtJS 2 to 3.3 all Comboboxes in our application stopped working. It seems as if the "onClick"-Event gets lost - selecting an item via keyboard still works as expected.

After clicking the trigger button the combobox opens as expected. However if you click on a item the combobox closes, does not fire the "select"-event and it also keeps displaying the previous value.

When clicking on an item the following events are fired:
collapseIf
beforeBlur
postBlur
collapse

Here is one of my comboboxes:


this.goalStore= new Ext.data.JsonStore({
url: '/some/url/',
root: 'goals',
autoLoad: true,
fields: ['id','name']
});

this.goalCombo = new Ext.form.ComboBox({
store: this.goalStore,
displayField:'name',
typeAhead: true,
autoLoad: false,
editable: false,
fieldLabel: 'Goal',
triggerAction: 'all',
emptyText:'- GOAL - ',
selectOnFocus:true ,
lazyInit:false,
forceSelection:true
});


Any idea why this is happening?

Thanks,
Jens

Condor
9 Aug 2010, 3:09 AM
Are you sure you upgraded everything? Did you have any custom overrides on ComboBox, DataView etc. that are not longer valid or required for Ext 3.3?

jd2
9 Aug 2010, 3:41 AM
After double-checking i really found the breaking override - thanks.
But now i have to find a new Solution to the problem this override fixed: after using setValue the combobox is expanded.

Condor
9 Aug 2010, 3:49 AM
Do you mean you want the combobox to expand after calling setValue?

ps. This patch (http://www.sencha.com/forum/showthread.php?75751-OPEN-42-ComboBox-s-setValue-call-with-a-remotely-loaded-Store&p=400274#post400274) is a very popular override for ComboBox.setValue. Are you looking for that?

jd2
9 Aug 2010, 3:59 AM
No, the exact opposite. IIRC got that override from this thread:
http://www.sencha.com/forum/showthread.php?40823-combobox-keeps-focus
I'll try to find a new Fix for this issue.