PDA

View Full Version : Combobox clears the text being searched if no results found



maheshmgopi
11 Jun 2013, 8:17 PM
I have a combobox with auto complete feature. The text being entered is sent to server on keyup and the result is populated as suggestions. But if there is no result, then the text entered is getting cleared. I want the text remained in the combobox.
Below is my code. I am using Extjs 4.1.3
{
xtype: 'combobox',
emptyText:'Search',
store:'TankCompletionSearchStore',
displayField: 'Name',
action:'tankCompletionSearch',
valueField:'TankID',
labelAlign: 'top',
margin:'3 0 0 0',
minChars:1,
tabIndex:0,
hideTrigger:true,
forceSelection:false,
width: 210,
enableKeyEvents: true,
listConfig: {
loadingText: 'Searching...',
emptyText: 'No results found'
}
}

Thanks

maheshmgopi
12 Jun 2013, 9:44 PM
Hi, does anybody have any idea? I am stuck here. Please help.

slemmon
13 Jun 2013, 1:50 PM
Can you post the response from your server when matches are found and delivered and then also an example response from your server when a match is not found?