},
select: function () {
- Roo.log("SELECT CALLED");
+ //Roo.log("SELECT CALLED");
},
selectByValue : function(xv, scrollIntoView){
onSelect : function(record, index){
// Roo.log("onselect Called");
// this is only called by the clear button now..
- this.view.clearSelections();
- this.value = '[]';
+ this.view.clearSelections();
+ this.setValue('[]');
if (this.value != this.valueBefore) {
this.fireEvent('change', this, this.value, this.valueBefore);
}
var ar = [] ;
try {
- Roo.log(this.value);
+ //Roo.log(this.value);
+ if (typeof(this.value) == 'undefined') {
+ return [];
+ }
var ar = Roo.decode(this.value);
return ar instanceof Array ? ar : []; //?? valid?