PDA

View Full Version : Combobox typeahead is not selecting the proper value



sudiplovesyou
16 Jan 2011, 11:30 PM
Hi,
Myself a beginner in Ext Js. And I am stuck with a little problem here. I have cofigured a combobox as below

xtype:'combo', name: 'buySell',
cls: 'xenos-combo',
labelStyle: 'width:160px',
fieldLabel: Xenos.Messages.Trd.LBL_BUY_SELL_FLG,
typeAhead: true, triggerAction: 'all', lazyRender:true, mode: 'remote',
store: new Ext.data.JsonStore({
url: 'scripts/ext-xenos/metadata/trd/form/trade_query_allcombo_data.json',
fields: ['id', 'ui_value', 'value'],
root: 'buy_sell_flag'
}),
valueField: 'value',
displayField: 'ui_value'

Now this data json holds value 'buy' and 'sell'. I would like to select sell in combo textbox when i type 's' there but everytime it is selecting 'buy' instead. I dont know what i am missing. Please help.

AndreaCammarata
17 Jan 2011, 2:21 AM
Hi stupidlovesyou,
To have support about Ext, you have to post in Ext Help forum.
This is Sencha Touch Forum.

sudiplovesyou
17 Jan 2011, 11:17 PM
Oh I am extremely sorry for tht.

AndreaCammarata
17 Jan 2011, 11:50 PM
No problem man ;).