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

Sorting is ignored when exporting from a DataGrid #3315

Closed
KremnevDmitry opened this issue May 30, 2024 · 1 comment
Closed

Sorting is ignored when exporting from a DataGrid #3315

KremnevDmitry opened this issue May 30, 2024 · 1 comment
Assignees
Labels
in: flowui type: bug Something isn't working

Comments

@KremnevDmitry
Copy link
Contributor

KremnevDmitry commented May 30, 2024

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

  1. Open an attached project
  2. Open TestEntitiesListView
  3. Sort by the number column
  4. Export all rows

Current Behavior

image

Expected Behavior

UI:
image

Sample Project

test.zip

@KremnevDmitry KremnevDmitry added type: bug Something isn't working in: flowui triage Issue is waiting for triage labels May 30, 2024
@gorbunkov gorbunkov self-assigned this May 31, 2024
@gorbunkov gorbunkov removed the triage Issue is waiting for triage label May 31, 2024
@gorbunkov
Copy link
Contributor

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:

jmix.gridexport.export-all-pagination-strategy = limit-offset

@gorbunkov gorbunkov closed this as not planned Won't fix, can't repro, duplicate, stale Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: flowui type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants