1. #621
    Sencha User
    Join Date
    Apr 2012
    Posts
    7
    Vote Rating
    0
    ldashevskiy is on a distinguished road

      0  

    Default


    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.

  2. #622
    Sencha User
    Join Date
    Oct 2007
    Location
    Berlin, Germany
    Posts
    854
    Vote Rating
    2
    wm003 is on a distinguished road

      0  

    Default


    if you add

    PHP Code:
    ,assertValue Ext.emptyFn 
    it works under all Ext.Versions up to 3.4.x

    Without that it would only work up to Ext 3.1.1

  3. #623
    Sencha User
    Join Date
    Apr 2012
    Posts
    7
    Vote Rating
    0
    ldashevskiy is on a distinguished road

      0  

    Default


    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...

  4. #624
    Sencha User
    Join Date
    Jan 2013
    Posts
    2
    Vote Rating
    0
    yerman is on a distinguished road

      0  

    Default


    Thank you mholyszko,

    Your fix was very useful for me!