this.collapse(); //??
},
- setValue : function(v){
- var text = v;
- if(this.valueField){
- var r = this.findRecord(this.valueField, v);
- if(r){
- text = r.data[this.displayField];
- }else if(this.valueNotFoundText !== undefined){
- text = this.valueNotFoundText;
- }
- }
- this.lastSelectionText = text;
- if(this.hiddenField){
- this.hiddenField.value = v;
- }
- Roo.form.ComboBox.superclass.setValue.call(this, text);
- this.value = v;
- },
+
findRecord : function (prop,value)
{
});
}
return record;
- },
+ }
});
\ No newline at end of file