-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ESF on igx-grid does not reflect current filters in esf dialog #14328
Conversation
b3.mp4 |
According to this comment we must show the number of column filtered not the number of filtering operands (in advanced filtering we can apply multiple operands to one column) In this screenshot since we have two operands on column ID the number on the Advanced filtering button should be 1 |
.../igniteui-angular/src/lib/grids/filtering/excel-style/excel-style-custom-dialog.component.ts
Outdated
Show resolved
Hide resolved
….spec.ts Co-authored-by: Hristo <[email protected]>
Figma Design File and references related to the issue We suggest removing the custom button border style after adding a span with a number of the filtered columns. There is no need to add additional visual indications or customize the buttons this way. Please apply and point 1 from the last screenshot -> when filters are applied. The Text filter list item should be in an Active state, the same as the List component. |
Create a new issue from this comment because it is not related to this PRI noticed something else, and we talked with Desi: This is an additional issue that should be logged, but we can create such from this comment here. When I select one list item, the Text filter is changed to Text filter (1), and "Equal" is selected from the filters. Screen.Recording.2024-06-28.at.11.12.37.movI believe the logic should be: when two or more items are selected to apply the Custom filter, the filters should be indicated with (n) next to the Text filter. Something interesting here is that everything looks fine if I select two items and then add more from the Custom filter. After manually adding an additional filter, there is no indication of which items/filters are selected. Screen.Recording.2024-06-28.at.11.12.58.mov |
Please add one more test, similar to |
projects/igniteui-angular/src/lib/grids/grid/grid-filtering-ui.spec.ts
Outdated
Show resolved
Hide resolved
projects/igniteui-angular/src/lib/grids/grid/grid-filtering-ui.spec.ts
Outdated
Show resolved
Hide resolved
projects/igniteui-angular/src/lib/grids/grid/grid-filtering-ui.spec.ts
Outdated
Show resolved
Hide resolved
Nice catch, @AnjiManova ! This is due to the fact how ESF (Excel Style Filtering) works:
I feel this is kind of an edge case and not even sure if a bug, so yes - please log it as a separate issue, tagged with |
….spec.ts Co-authored-by: Hristo <[email protected]>
…UI/igniteui-angular into ddincheva/filteringDialog
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the comment about extracting the code to initialize expression in a new method was resolved without the comment being addressed, I am giving an example what I imagined for a method without this repetitive code.:
private createInitialExpressionUIElement() {
const firstExprUI = this.initializeExpressionUI();
const secondExprUI = this.initializeExpressionUI();
if (this.expressionsList.length === 1 && this.expressionsList[0]?.expression?.condition?.name === this.selectedOperator) {
...
} else {
...
}
firstExprUI.afterOperator = FilteringLogic.And;
secondExprUI.beforeOperator = FilteringLogic.And;
this.expressionsList = [firstExprUI ,secondExprUI];
}
The other changes in the method are a custom preference of course, but it makes it look more readable.
Closes #14188
Additional information (check all that apply):
Checklist:
feature/README.MD
updates for the feature docsREADME.MD
CHANGELOG.MD
updates for newly added functionalityng update
migrations for the breaking changes (migrations guidelines)