jmix icon indicating copy to clipboard operation
jmix copied to clipboard

Support in-memory sorting for DataGrid

Open glebfox opened this issue 1 year ago • 1 comments

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

  1. Make columns now associated with jpa attributes non-sortable by default.
  2. Provide explicit in-memory sorting rule, e.g. using Vaadin Grid API - https://vaadin.com/docs/next/components/grid#specifying-sort-property (Column:: setComparator)
  3. CollectionLoader should take into account this in-memory sorter

glebfox avatar Jun 13 '24 10:06 glebfox

Relates to https://github.com/jmix-framework/jmix/issues/2093 and internal issue

glebfox avatar Jul 18 '24 11:07 glebfox