-
Notifications
You must be signed in to change notification settings - Fork 2.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
Exporter Excludes Parent Nodes (TreeView) #6819
Comments
I am having the same trouble exporting data inside a Tree View. Only leaf nodes get exported and not the parent nodes. Applies across all file formats chosen. What i also notice is that, 'Export visible data' does indeed export parent nodes plus the child leaf nodes but only those visible on the current page. So, the logic to include parent nodes exists but it does not work across all pages for the 'Export all data' functionality. I can achieve the 'Export all data' functionality by making all data show up on just one page (using pagination) and then use the 'Export visible data'. So, the code for what i need exists within UI Grid but it only needs to be extended. |
I would love to see this fixed as well, but thanks to @SanJagDar for the tip about Export visible! |
Fix export all data to excel with treeview bug. Example: http://plnkr.co/edit/hFPAO6W3EW8nlzt2 fix #7127, fix #6819
Fix export all data to excel with treeview bug. Example: http://plnkr.co/edit/hFPAO6W3EW8nlzt2 fix #7127, fix #6819
Fix export all data to excel with treeview bug. Example: http://plnkr.co/edit/hFPAO6W3EW8nlzt2 fix #7127, fix #6819
Fix export all data to excel with treeview bug. Example: http://plnkr.co/edit/hFPAO6W3EW8nlzt2 fix #7127, fix #6819
The "All data" option for the exporter is insufficient because it does not actually export all data. When combined with TreeView, it presumes that any parent nodes are merely for grouping and categorizing data, and not part of the data itself. It seems to me that there should be another gridOption to use with exporter that lets you include all data, not just leaf nodes. (And in my opinion that should be the default behavior.)
This is regardless of which export format is chosen. It comes down to the getData and getDataSorted functions in ui-grid.exporter.js.
The text was updated successfully, but these errors were encountered: