epoks, could you, please, explain, how to use your "overwrite"?
Why do you say that it is PHP code, when in actuality it is JavaScript code, no? Or am I misunderstanding something?
Oh, yes, and does it at all work with Ext 3.4?
Thanks.
Printable View
epoks, could you, please, explain, how to use your "overwrite"?
Why do you say that it is PHP code, when in actuality it is JavaScript code, no? Or am I misunderstanding something?
Oh, yes, and does it at all work with Ext 3.4?
Thanks.
if you add
it works under all Ext.Versions up to 3.4.x :)PHP Code:,assertValue : Ext.emptyFn
Without that it would only work up to Ext 3.1.1
Thanks, wm003.
I ended up finding a working soluation and it has the following override:
assertValue:function() {
this.list.hide();
var rv = this.getRawValue();
var rva = rv.split(new RegExp(RegExp.escape(this.separator) + ' *'));
var va = [];
var snapshot = this.store.snapshot || this.store.data;
// iterate through raw values and records and check/uncheck items
Ext.each(rva, function(v) {
snapshot.each(function(r) {
if(v === r.get(this.displayField)) {
va.push(r.get(this.valueField));
}
}, this);
}, this);
this.setValue(va.join(this.separator));
this.store.clearFilter();
}
though, this is a slightly customized LovCombo...
Thank you mholyszko,
Your fix was very useful for me!