igniteui-angular icon indicating copy to clipboard operation
igniteui-angular copied to clipboard

IgxDateFilteringOperand's operation "doesNotEqual" doesn't work if the "equals" operation is localized(modified).

Open npaunov opened this issue 8 years ago • 0 comments

Description

IgxDateFilteringOperand's operation "doesNotEqual" doesn't work if the "equals" operation localized(modified).

Steps to reproduce:

Localize strings in filtering operands like this constructor() { IgxDateFilteringOperand.instance().operations.forEach(operation => operation.name = this.localizeFilteringString(operation.name)); }

localizeFilteringString(targetString: string): string { let result: string = targetString; switch (targetString) { case 'equals': result = 'eq'; break; case 'all': result = '全て'; break; default: break; } return result; }

  1. Run the app and filter a Date column by 'Eq' for a Day in the Date column.
  2. Filter the Date Column by 'Does Not Equal' for the same day.

Result

Nothing happens.

Expected result

The grid should filter excluding the specified Day.

npaunov avatar Jul 31 '18 11:07 npaunov