* the store, valueNotFoundText will be displayed as the field text if defined (defaults to undefined)
*/
valueNotFoundText : undefined,
+
+ /**
+ * @cfg {String} defaultValue The value displayed after loading the store.
+ */
+ defaultValue: '',
+
/**
* @cfg {Boolean} blockFocus Prevents all focus calls, so it can work with things like HTML edtor bar
*/
op.innerHTML = String.format('{0}', r.data[df]);
dom.appendChild(op);
});
- this.setValue(this.value);
+ if (typeof(this.defaultValue != 'undefined')) {
+ this.setValue(this.defaultValue);
+ }
+
}else{
//this.onEmptyResults();
},
getResizeEl : function(){
return this.el;
- },
+ }
});
\ No newline at end of file