diff --git a/projects/igniteui-angular/src/lib/grids/filtering/excel-style/excel-style-conditional-filter.component.ts b/projects/igniteui-angular/src/lib/grids/filtering/excel-style/excel-style-conditional-filter.component.ts index 3dfeaa8efd8..8a9e549f442 100644 --- a/projects/igniteui-angular/src/lib/grids/filtering/excel-style/excel-style-conditional-filter.component.ts +++ b/projects/igniteui-angular/src/lib/grids/filtering/excel-style/excel-style-conditional-filter.component.ts @@ -41,7 +41,7 @@ export class IgxExcelStyleConditionalFilterComponent implements OnDestroy { public subMenu: IgxDropDownComponent; protected get filterNumber() { - return this.esf.expressionsList.length; + return this.esf.expressionsList.filter(e => e.expression.condition).length; } private shouldOpenSubMenu = true; @@ -146,6 +146,8 @@ export class IgxExcelStyleConditionalFilterComponent implements OnDestroy { if (this.esf.expressionsList && this.esf.expressionsList.length && this.esf.expressionsList[0].expression.condition.name !== 'in') { this.customDialog.expressionsList = this.esf.expressionsList; + } else { + this.customDialog.expressionsList = this.customDialog.expressionsList.filter(e => e.expression.fieldName === this.esf.column.field && e.expression.condition); } this.customDialog.selectedOperator = eventArgs.newSelection.value; diff --git a/projects/igniteui-angular/src/lib/grids/filtering/excel-style/excel-style-custom-dialog.component.ts b/projects/igniteui-angular/src/lib/grids/filtering/excel-style/excel-style-custom-dialog.component.ts index eab8f8dc4fe..152f8e244f5 100644 --- a/projects/igniteui-angular/src/lib/grids/filtering/excel-style/excel-style-custom-dialog.component.ts +++ b/projects/igniteui-angular/src/lib/grids/filtering/excel-style/excel-style-custom-dialog.component.ts @@ -46,6 +46,7 @@ import { NgClass, NgIf, NgFor } from '@angular/common'; export class IgxExcelStyleCustomDialogComponent implements AfterViewInit { @Input() public expressionsList = new Array(); + @Input() public column: ColumnType;