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

[DataGrid] CSV export negative numbers in string has quotation #13892

Closed
youngmoon715 opened this issue Jul 18, 2024 · 3 comments
Closed

[DataGrid] CSV export negative numbers in string has quotation #13892

youngmoon715 opened this issue Jul 18, 2024 · 3 comments
Labels
component: data grid This is the name of the generic UI component, not the React module! duplicate This issue or pull request already exists

Comments

@youngmoon715
Copy link

youngmoon715 commented Jul 18, 2024

Steps to reproduce

Link to live example:
CodeSandbox Example

Steps:

  1. Create columns of type number OR string (Example has already done these steps)
  2. enter in data with negative numbers, inside of quotations
  3. Export CSV
  4. See that the numbers have quotations in them in the CSV

Current behavior

When exporting negative numbers, or any string with hyphen -, it attaches a single quotation to the value.
'-
'-25

Expected behavior

There should be no single quote on front of the hyphen (negative sign)

Context

Allow negative numbers in strings, for such when separating the numbers in commas

Your environment

CodeSandbox Env

Search keywords: DataGrid, CSV, export, numbers, strings, quotation

@youngmoon715 youngmoon715 added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Jul 18, 2024
@arminmeh arminmeh added component: data grid This is the name of the generic UI component, not the React module! duplicate This issue or pull request already exists labels Jul 18, 2024
@arminmeh
Copy link
Contributor

hey @youngmoon715
this is a duplicate of #13790
you can check the reason why this happens and how to turn it off

Copy link

⚠️ This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue.
Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.

@youngmoon715: How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey.

@arminmeh arminmeh removed the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Jul 18, 2024
@arminmeh arminmeh reopened this Jul 18, 2024
@arminmeh arminmeh closed this as not planned Won't fix, can't repro, duplicate, stale Jul 18, 2024
Copy link

⚠️ This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue.
Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.

@youngmoon715: How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: data grid This is the name of the generic UI component, not the React module! duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants