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

Provide a way to turn off the built-in filtering and sorting for remote scenarios #4356

Closed
DiyanDimitrov opened this issue Mar 19, 2019 · 5 comments · Fixed by #6086
Closed
Assignees
Labels
filtering grid: general grid: sorting 🧰 feature-request ✅ status: resolved Applies to issues that have pending PRs resolving them, or PRs that have already merged.

Comments

@DiyanDimitrov
Copy link
Contributor

Is your feature request related to a problem? Please describe.

If you want to implement remote filtering and sorting, the grid's built-in filtering and sorting cannot be prevented.
You can see this if you open https://www.infragistics.com/products/ignite-ui-angular/angular/components/grid/virtualization.html#remote-sortingfiltering-virtualization. Click the "ProductID" column header to sort descending. First you see the row with ProductID=9 on top because of the grid local sorting, then the remote data is loaded and ProductID=77 is on top.

Describe the solution you'd like

Provide a way to turn off the built-in sorting and filtering pipes when you perform these operations remotely.

@prabakaran1311
Copy link

@DiyanDimitrov when it will be available because i am facing one issue. while filtering done first it filters the local data if filtered data is not available in local data it showing "no data" message then it is rendering the Remote datas in grid. how to solve this in tree grid.

@DiyanDimitrov
Copy link
Contributor Author

@prabakaran1311, Currently there is no way to solve this. We are discussing the possible ways to implement it inside the component and we will plan working on it in a future sprint.

@brookhutchinson
Copy link

brookhutchinson commented Sep 19, 2019

Is there any update on this issue? Why would the grid show a "No records found" message if there grid is still waiting on a response from an API? How can we remove this "No records found" message?

@DiyanDimitrov
Copy link
Contributor Author

@brookhutchinson, The reason the grid is showing the "No records found" message is that the grid is not aware of the waiting for a response. The gird just performs the filtering on the locally loaded data.

Currently the onFilteringDone event is fired after the local filtering is completed. We were discussing with @rkaraivanov that we can add onFiltering event which is fired before the local filtering is performed and we could give the option to cancel the local filtering in that event.

If you want to hide this message as a workaround you could set the emptyFilteredGridMessage input property to an empty space character like this [emptyFilteredGridMessage]="' '". Keep in mind that this way the message won't appear even if the filtered data from the server is empty.

@brookhutchinson
Copy link

Thank you for your suggestion. Issue resolved by setting the emptyFilteredGridMessage input property to an empty space character.

@DiyanDimitrov DiyanDimitrov added the 🛠️ status: in-development Issues and PRs with active development on them label Oct 23, 2019
tachojelev added a commit that referenced this issue Oct 29, 2019
@tachojelev tachojelev 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 Oct 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
filtering grid: general grid: sorting 🧰 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.

7 participants