I am using this technique to accomplish an auto-complete feature for a combo boxhttp://cdn.sencha.com/ext-4.1.1a-gpl...um-search.html , it returns name and type of a car, sometimes the type is unknown so nothing returns, I would like it to be "No Data" so I used this
Code:
valueNotFoundText: 'No Data'
but didn't work
Code:
xtype: 'combo',
store: s,
hideTrigger:true,
typeAhead: false,
id: 'search',
queryMode: 'remote',
queryParam: 'query',
displayField: 'name',//+'type',
valueField: 'name',//+'type',
//valueNotFoundText: 'No Data',
,listConfig: {
loadingText: ' Loading...',
getInnerTpl: function() {
return '{name}'+'<br>'+'<p><font size="1">{type}'+':type</font></p>';
} ,
} , listeners: {