DevExpress / devextreme-reactive

Business React components for Bootstrap and Material-UI
https://devexpress.github.io/devextreme-reactive/
Other
2.08k stars 382 forks source link

Grid - Support custom sorting in GridExporter #3040

Open DevExpressSupportTeam opened 4 years ago

DevExpressSupportTeam commented 4 years ago

Example

https://codesandbox.io/s/stoic-aryabhata-iwv2p?file=/demo.js

Info

React Grid's GridExporter doesn't allow specifying the IntegratedSorting.ColumnExtension option.

Actual behavior

Standard sorting is applied

Expected behavior

Custom sorting should be applied

Workaround

Obtain sorted rows via a custom plugin registered after the IntegratedSorting plugin. Then, pass these rows to GridExporter via the rows option.

https://codesandbox.io/s/react-grid-custom-sorting-in-gridexporter-7f1zg

theMattCode commented 3 years ago

Would highly appreciate if this would be available.

I tried the workaround but ended up in a loop where the Getter-Plugin's computed callback has been called over and over again. Is this a known issue?

Richardtugwell commented 3 years ago

Would highly appreciate if this would be available.

I tried the workaround but ended up in a loop where the Getter-Plugin's computed callback has been called over and over again. Is this a known issue?

I also experienced this problem implementing the workaround - resulting in memory leak in our case

bri-bsw commented 3 years ago

Would highly appreciate if this would be available.

I tried the workaround but ended up in a loop where the Getter-Plugin's computed callback has been called over and over again. Is this a known issue?

Hello, I also implemented the workaround in our project and ended up in a loop. I didn't found a solution yet. Is there another way to use custom sorting in GridExporter? Thank you in advance. Regards, Patrick