-
Notifications
You must be signed in to change notification settings - Fork 95
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
Export without pagination #8
Comments
+1 for this |
+1. |
I also +1 one this! |
Sorry, not related. I didn't realize that the way he implemented is he is just scraping the table for the values. I concur -- what @cboden said above, using |
+1 !!! Thanks! |
+1 |
1 similar comment
+1 |
I had to solve this. I forked the repo, and rebuilt the plugin -- see the README https://github.com/davisford/ng-table-export Unfortunately, this was a fairly big re-write of the plugin, so I'm not going to send a PR. I've only been testing it in my own project and it seems to work fairly well. I have a lot of different report style pages with charts and many different tables, and it is working so far. Feel free to try it. If you're using bower, you can just point the dependency in
and try it out. The usage has changed slightly, so consult the updated README. There are a few other improvements listed there as well. Finally, while using caveat -- works in chrome and firefox. in safari, it opens and displays the csv. have not tested IE b/c we are not targeting it. Cheers. |
+1 |
+1 @davisford Thanks. I used your plugin. My stackoverflow question here http://stackoverflow.com/questions/27228799/how-to-export-whole-data-from-a-table-in-angularjs-including-all-paginated-data/27241811#27241811 |
+1 |
@abhisheksimion thanks -- feel free to send back a pr if you have improvements. FWIW, i have been using my solution in production now for about 6 months with zero issues. I wrote a similar plugin to export XLS format. |
This problem can be solved from (at least) two ways:
|
hello @thiagodp thanks for the input, and no offense but i think you're a bit late to the party. solution 1 is a totally different solution unrelated to ng-table-export. this plugin parses the html table in memory and regenerates it as a download link in csv format. i forked and modified the repo to do something similar to solution 2. i set the # pager rows to we've been hammering on this in production for nearly a year, and we get a lot of csv and xls exports -- it has worked flawlessly for us. caveat: we don't do millions of rows - that gets to just be infeasible inline in the browser and real client/server paging is called for, but it can deal with several thousand rows without the blink of an eye. of course it depends on your hardware, but with modern 2010's hardware it has not been an issue for us. |
Hello @davisford, I don't think I'm late to the party: there are people still using esvit's solution. These can still benefit from my suggestion. Glad to hear your solution has been worked well. I think I will try it. Could you also solve the UTF problem? Thanks. |
Which problem with UTF? |
#16 (please see my comment) |
Hello every body, |
Hello, a(ng-controller='MyCtrl', ng-click='csv.generate($event, filename() + ".csv", $scope.myCustomTableParams)', href='') |
@arseneoaa Adding 3rd argument doesn't seem to work on controller as styntax. <a ng-controller='MyCtrl as mc' ng-click='csv.generate($event, filename() + ".csv", mc.myCustomTableParams)'></a> Any clue? Thanks |
Hello, does anybody could explain how to make it work ? |
function getData(data, params) {
|
I'm using ng-table 0.3.1 with ng-table-export master branch. When I export to csv I only get the results of the page and count that has been selected. I would like to download the full result set, not just the current page that is being displayed.
Ideally could the export trigger the ngTableParams.getData function with a parameter indicating it's a csv export. I could then choose to paginate or not.
The text was updated successfully, but these errors were encountered: