Skip to content
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

[PivotGrid] Filtering Expressions #11786

Closed
anserban opened this issue Jun 29, 2022 · 4 comments · Fixed by #11816
Closed

[PivotGrid] Filtering Expressions #11786

anserban opened this issue Jun 29, 2022 · 4 comments · Fixed by #11816
Assignees
Labels
🧰 feature-request ✅ status: resolved Applies to issues that have pending PRs resolving them, or PRs that have already merged.

Comments

@anserban
Copy link

Question

We are trying to preserve the filtering expressions by getting the filteringExpressionsTree from the pivot (on filteringDone event) and save it in the browser's storage. After refresh, we set it back using the same property, but it doesn't seem to do the update.

Could you please confirm if this should work or not by having a small sample/example for this particular scenario?

  • igniteui-angular version: 13.2.1
  • browser: Chrome
@MayaKirova
Copy link
Contributor

@anserban
The filters can be set on initialization per dimension via the pivot configuration: https://www.infragistics.com/products/ignite-ui-angular/angular/components/pivotGrid/pivot-grid-features#dimensions-filtering
Here’s a small sample: https://stackblitz.com/edit/angular-m3m4m3

If you change directly the filteringExpressionsTree, without the dimension's collection, nothing will change in the grid.

I don’t think we have a method to change filter expressions runtime for the dimensions if that’s what you are looking for. Let me know if that's the case.

@anserban
Copy link
Author

Yes, I thought it could also be changed at runtime and wasn't sure.
Let me know if this can be added for future versions.

@MayaKirova
Copy link
Contributor

@anserban
We could add an API for filtering runtime, similar to sorting, something like : filterDimension.
The other option would be if the whole pivot configuration object is changed runtime with a configuration that contains the new filters (since Angular does not trigger a change automatically if you modify an internal property like filter inside an existing dimension object).

Let me know if those would help.

@anserban
Copy link
Author

anserban commented Jul 4, 2022

We can try changing the pivot configuration for now and maybe, once we have a state object, we will be able to use it for setting multiple filtering expressions in one go.

Adding a filterDimension method could also be useful to have.

@MayaKirova MayaKirova added the 🛠️ status: in-development Issues and PRs with active development on them label Jul 4, 2022
@MayaKirova MayaKirova added ✅ status: resolved Applies to issues that have pending PRs resolving them, or PRs that have already merged. and removed 🛠️ status: in-development Issues and PRs with active development on them labels Jul 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🧰 feature-request ✅ status: resolved Applies to issues that have pending PRs resolving them, or PRs that have already merged.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants