You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Default all records exporting uses the "keyset" pagination strategy (records are always sorted by a primary key). So it ignores the sorting defined on the screen.
However, in Jmix 2.3, an additional "limit-offset" exporting strategy has been introduced. See the issue #3001.
If you set this new strategy, then sorting will be kept in the resulting excel file:
Environment
Jmix version: 2.3.999-SNAPSHOT
Bug Description
If you enable sorting on a
DataGrid
and then export, the data will not be sorted.See related: #3316
Steps To Reproduce
number
columnCurrent Behavior
Expected Behavior
UI:
![image](https://private-user-images.githubusercontent.com/75516667/335145902-1eb31dc4-7da0-4121-a634-dd504afdc966.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYxNTE3NzgsIm5iZiI6MTcyNjE1MTQ3OCwicGF0aCI6Ii83NTUxNjY2Ny8zMzUxNDU5MDItMWViMzFkYzQtN2RhMC00MTIxLWE2MzQtZGQ1MDRhZmRjOTY2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTEyVDE0MzExOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTNlMDYyNTUwNmNhN2MwMGJhNTdmM2RjMWEyZGJhZjU1MjgxODM2MzJkNmVkMjA1M2RhNDQ3Nzc4ZWVkNDg5NGImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.RndrviBxjIRainG6X9XhzaefjMxZaef-rThKnbnJTm0)
Sample Project
test.zip
The text was updated successfully, but these errors were encountered: