jeudi 30 avril 2020

ag grid floating filter mat select dropdown with multiple option checkbox not getting fliter results

Basically, in the current value, we are getting multiple options in form of the array but not able to filter it.

this.params.onFloatingFilterChanged({ model: this.buildModel(this.currentValue) });
this.params.parentFilterInstance( (instance) => {
  if (typeof this.currentValue === 'object') {
    if (this.currentValue.length > 0) {
      **instance.onFloatingFilterChanged('equals', this.currentValue);//this.currentValue=['enable','disable']**
    } else {
      instance.onFloatingFilterChanged('equals', '');
    }
  } else {
    instance.onFloatingFilterChanged('equals', this.currentValue);
  }
});



Aucun commentaire:

Enregistrer un commentaire