PDA

View Full Version : combobox.findValue n combobox.findText



cybermerlin
18 Nov 2010, 12:07 AM
hi
i need method for finding item in comboBox of value or text.
comboBox.findValue(string val) || comboBox.findText(string val)

tomalex0
18 Nov 2010, 6:29 AM
Is this you looking?


{
xtype: 'select',
name: 'test',
label: 'Test',
store : selectStore,
valueField: 'value',
displayField: 'text',
listeners:{
select: function(form,value ){
var Obj =form.store.getAt(form.store.find('value',value)).data;
console.log(Obj) //
}
}
}

26 Nov 2010, 8:04 AM
yeah, I don't think this belongs in Sencha Touch feature requests. moving to Ext JS help.

26 Nov 2010, 8:06 AM
Also, please don't start your threads with "I need". It's considered rude!