jmix
jmix copied to clipboard
Support in-memory sorting for DataGrid
Origin: forum
Problem
If more than one page of data is loaded, in-memory sorting for transient attributes is not applied. This may confuse users because behavior differs for one page and several.
Proposed solution
- Make columns now associated with jpa attributes non-sortable by default.
- Provide explicit in-memory sorting rule, e.g. using Vaadin Grid API - https://vaadin.com/docs/next/components/grid#specifying-sort-property (
Column:: setComparator) - CollectionLoader should take into account this in-memory sorter
Relates to https://github.com/jmix-framework/jmix/issues/2093 and internal issue