Devextreme-reactive: Bug with ExportGrid when I use DataTypeProvider

Created on 3 Apr 2020  路  2Comments  路  Source: DevExpress/devextreme-reactive

  • [X ] I have searched this repository's issues and believe that this is not a duplicate.

I'm using ...

  • [ X] React Grid
  • [ ] React Chart
  • [ ] React Scheduler

Current Behaviour

I have created a column called "Modality" that is an Enum. Each number represents a value; for example "value =1" represents a string that is "Number One". When I convert it to excel and download it, in the column "Modality", I expect to see Number One, but I see only a number (1).

Expected Behaviour

When I download the excel in the column "Modality", I expect to see the value that converts with the component DataTypeProvider. In this example I convert 1 (Number) in a string "Number One".

Steps to Reproduce

Link to the example that reproduces the issue: <https://codesandbox.io/s/goofy-nobel-iwyhr>

Screenshots

ScreenShoot

Environment

  • devextreme-reactive: 2.6.0
  • react: 16.11
  • browser: chrome
  • bootstrap: none
  • react-bootstrap: none
  • material-ui: YES
Grid question

Most helpful comment

Hi @lucas-bustos ,

This behavior is expected: the row values are exported as-is. Please use the customizeCell function to change an exported value.
Here's an updated codesandbox.

All 2 comments

Hi @lucas-bustos ,

This behavior is expected: the row values are exported as-is. Please use the customizeCell function to change an exported value.
Here's an updated codesandbox.

This thread has been automatically locked since it is closed and there has not been any recent activity. Please open a new issue for related bugs or feature requests.

Was this page helpful?
0 / 5 - 0 ratings