Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Grid sorts values from datasource instead of the value set by a renderer

Matthias Larisch
5 years ago Dec 23, 2016 10:01am
Octavian NITA
5 years ago Dec 23, 2016 10:16am

While I haven't used it myself (yet), apparently one can set an ItemSorter on an IndexContainer, to define an order for the items. I guess you could implement such a sorter, based on the mapping numeric value <-> string that you define anyway and simply set it on your container...

Matthias Larisch
5 years ago Dec 23, 2016 11:37am
Octavian NITA
5 years ago Dec 23, 2016 12:28pm