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

p-Table: Filters w/ lazy loading. Clicking "Add Rules" in filter menu fires off load event. #10075

Closed
briangullo opened this issue Apr 4, 2021 · 1 comment
Labels
Status: Pending Review Issue or pull request is being reviewed by Core Team

Comments

@briangullo
Copy link

briangullo commented Apr 4, 2021

I'm submitting a ... (check one with "x")

[ x] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35

Current behavior
I'm using a p-table with lazy loading and filters (using built in menu). When the user clicks "Add Rule" this fires off the lazy load event to reload the data. There does not seem to be a straight forward way to ignore this event.

Expected behavior
When using the filter menu, lazy load event should only be called when "Apply" or "Clear" is clicked.

What is the motivation / use case for changing the behavior?
Excessive calls against the database.

Please tell us about your environment:
Angular version: 11.0.5

TypeScript: 4.2.3

PrimeNG version: 11.2.3

Browser: [Chrome 89]

@yigitfindikli yigitfindikli added the Status: Pending Review Issue or pull request is being reviewed by Core Team label Apr 5, 2021
@yigitfindikli
Copy link
Member

This is expected behavior. When the user clicks the add rule button then the table trying to filter with the first rule.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Pending Review Issue or pull request is being reviewed by Core Team
Projects
None yet
Development

No branches or pull requests

2 participants