valueNotFoundText : String When using a name/value combo, if the value passed to setValue is not found in the store, valueNotFoundText will be displayed as the field text if defined. If this default text is used, it means there is no value set and no validation will occur on this field. 是调用setValue时触发,不是你的store为空就显示那个值
When using a name/value combo, if the value passed to setValue is not found in the store, valueNotFoundText will be displayed as the field text if defined. If this default text is used, it means there is no value set and no validation will occur on this field.
是调用setValue时触发,不是你的store为空就显示那个值
listeners:{load:function(store){
if(store.getCount()==0)alert('没有记录!');//或者改成你要的其他提示效果
}}
focus:function(){ if(shops_store.getCount()==0){ this.Invalid("没有记录,请先添加门店!'");
//alert('没有记录,请先添加门店!');//或者改成你要的其他提示效果
}
}
}用Invalid(String)即可更改cobobox后面的错误提示信息