PDA

View Full Version : Live Combo Search Template Drop Down Disappears and Reappears



Yemi
17 Mar 2014, 9:36 AM
I have a combo box in a box component


{
xtype:'box',
applyTo:'search',

},





my html page has this:



<div id="search"><input type="text" size="40" name="combo" id="combo" /></div>


Here is a part of my combo configuration


var search = new Ext.form.ComboBox({ id:'combosearch',
store: combostore,
displayField:'title',

typeAhead: false,
loadingText: 'Searching...',
width: 500,
pageSize:50,
hideTrigger:true,
tpl: resultTpl,
applyTo: 'combo',
itemSelector: 'div.search-item',


Everytime I search for an item that is not found and immediately change the query to an item that is present in the server while the combo is still displaying the loading icon, the combo box dissappears first indicating that the item was not found then later appear with my new query result.

Anyone with a suggestion on how to fix this ?

Yemi
18 Mar 2014, 12:56 AM
Any ideas please ?