-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
Filtering support for CSV export #982
Comments
CSV export applying to filtered data would be a great feature. +1 |
You could make a change to primeng in node_modules. What happens on exportCSV function is that its using values instead of dataToRender. Technically all the fields of each object are identical at least from what I've seen. Not sure if there is any other diffs between them. Its just that DataToRender will accurately show the filtered items.
|
Hi guys, in primeng 2.0.4 it can be fixed easily next way: |
@ajlviv, thanks. It works!. How can I get the filtered values to use it later?. |
You can use onFilter event, something like that: |
I do not know how many beers I owe you, @ajlviv. |
Great! Thanks @ajlviv It works |
I concur - thanks @ajlviv . Nice! |
Okay, so if we've figured out how to do it, how come the devs have yet to bin this for release? @ajlviv maybe submit a PR with your changes? |
Hello,
I use the filtering of data table and i would like to retrieve the displayed data.
There is a way to retrieve or it was not implement ?
I watched the source code and I did not see any way to do it.
I also noticed that the csv export does not take into account the filtered data, which I find a bit strange.
Thanks
The text was updated successfully, but these errors were encountered: