combobox with drop list whose item height (for each item) is 3 pixels high!
I don't even see a property on the combobox control to set the height of the combobox items!
here's the offending combobox...
ExtJsComboBox4 = new Ext.form.ComboBox(
{
displayField:'stuff',
listWidth:0,
mode:'local',
store:[['mon'],['tue'],['wed']],
inlineStore:[
'mon',
'tue',
'wed'
],
valueField:'myid',
id:'ExtJsComboBox4',
applyTo:'ExtJsComboBox4',
width:130,
height:24
})
any ideas?
thanks!
ok- i reworked it, but you can see that direct array binding yeilds strange UI render
Thanks so much for jumping in- this community is outstanding!
ok- i understand using the store: property of the combobox and binding to an actual store. (though i don't see ArrayStore in ExtJs).
What I'm try to do is something that is in the documentation indicating that you can provide an array 'directly' as the store property. So if you look at my combobox4, it bindings to the one dimension array- per the documentation. However, if you run the code- the droplist is only a few pixels high- while the combobox that binds to an actual store (in this case simplestore) renders 'correctly' with a legible drop-list item height.
Is there more i need to do to "stretch" the item height?
thanks!
-s
<input type="text" id="ExtJsComboBox4" />
<input type="text" id="ExtJsComboBox5" />
Ext.onReady(function() {
var ExtJsComboBox4 = new Ext.form.ComboBox(
{
mode: 'local',
store: [['mon'], ['tue'], ['wed']],
applyTo: 'ExtJsComboBox4',
labelWidth: 80,
height: 100
})
var names = [['bob'], ['ted'], ['joe']];
var simplestore = new Ext.data.SimpleStore({ data: names, fields:['name']});
var ExtJsComboBox5 = new Ext.form.ComboBox(
{
mode: 'local',
displayField: 'name',
store: simplestore,
applyTo: 'ExtJsComboBox5'
});