*/
setFromData : function(o){
- Roo.log(o);
-
if(this.multiple){
this.addItem(o);
return;
this.hasFocus = false;
if(this.tickable){
+
+ this.tickItems = [];
+
this.okBtn.hide();
this.cancelBtn.hide();
this.trigger.show();
var default_text = '-- SELECT --';
+ if(this.placeholder.length){
+ default_text = this.placeholder;
+ }
+
+ if(this.emptyTitle.length){
+ default_text += ' - ' + this.emptyTitle + ' -';
+ }
+
var opt = this.inputEl().createChild({
tag: 'option',
value : 0,