View Full Version : Combo Box tpl not clickable

2 Oct 2011, 9:31 PM
Hey all,

Here's my code for my combobox:

xtype: 'toCombo',
store: comboStore,
mode: 'remote',
id: 'toField',
anchor: '70%',
name: 'to',
allowBlank: false,
tpl: new Ext.XTemplate(
'<tpl for=".">',
'<tpl if="this.group != values.group">',
'<tpl exec="this.group = values.group"></tpl>',
'<div class="x-combo-list-item"><pre> {name}</pre></div>',

So the combobox works perfectly, except nothing is clickable. Meaning, I cannot select any value for the combo box.

When I remove the tpl code, everything works fine; the combobox data is clickable. However, I need it to be formatted the way the tpl formats it.

Is there some sort of config or line of code I'm missing in this tpl?

Thanks for your help!

3 Oct 2011, 8:40 AM
Take a look at this post "Cannot pick value in combobox" (http://www.sencha.com/forum/showthread.php?146466-Q-Cannot-pick-value-in-comboBox-Err-Ext.fly%28item%29-is-null)