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

DataTable: Ability to exclude certain columns from exportCSV #3487

Closed
bhkangw opened this issue Oct 18, 2022 · 2 comments
Closed

DataTable: Ability to exclude certain columns from exportCSV #3487

bhkangw opened this issue Oct 18, 2022 · 2 comments
Labels
Resolution: Needs More Information More information about the issue is needed to find a correct solution

Comments

@bhkangw
Copy link

bhkangw commented Oct 18, 2022

Describe the feature you would like to see added

While you can specify exporting certain rows via selectionOnly 1853

I don't currently see a way to exclude any columns shown in DataTable from being included in export

Describe the solution you'd like

A way to display columns in DataTable but remove them during exportCSV

Maybe something like dtRef.current.exportCSV({ excludedColumns: ["id"] });

@bhkangw bhkangw added Status: Discussion Issue or pull request needs to be discussed by Core Team Type: New Feature Issue contains a new feature or new component request labels Oct 18, 2022
@github-actions github-actions bot added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Oct 18, 2022
@melloware
Copy link
Member

melloware commented Oct 19, 2022

Column has exportable on it?

<Column exportable={false}

for columns you want to exclude. have you tried that?

exportable boolean true Defines whether the column is exported or not.

@melloware melloware added Resolution: Needs More Information More information about the issue is needed to find a correct solution and removed Type: New Feature Issue contains a new feature or new component request Status: Discussion Issue or pull request needs to be discussed by Core Team Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Oct 19, 2022
@bhkangw
Copy link
Author

bhkangw commented Oct 19, 2022

@melloware 😭 how did I miss that. My bad thank you!

@bhkangw bhkangw closed this as completed Oct 19, 2022
@melloware melloware closed this as not planned Won't fix, can't repro, duplicate, stale Oct 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Needs More Information More information about the issue is needed to find a correct solution
Projects
None yet
Development

No branches or pull requests

2 participants