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 v8 Converter

C. Bosch
5 years ago Mar 08, 2017 10:48am

Hi,

while experimenting with the new Grid (v8) API, I wondered how to set a converter on a (databound) Column.
In v7 Grid it was possible via e.g. grid.getColumn("column").setConverter(new StringToDateConverter());

Anybody got ideas?

Roman Heinrich
5 years ago Mar 08, 2017 1:12pm
C. Bosch
5 years ago Mar 08, 2017 1:18pm
Roman Heinrich
5 years ago Mar 08, 2017 1:21pm
C. Bosch
5 years ago Mar 08, 2017 1:23pm
Roman Heinrich
5 years ago Mar 08, 2017 1:29pm
C. Bosch
5 years ago Mar 08, 2017 1:37pm
Jean-François Lamy
5 years ago Mar 14, 2017 1:15am
Jean-François Lamy
5 years ago Mar 14, 2017 1:17am
C. Bosch
5 years ago Mar 14, 2017 8:29am

grid.addColumn(item -> myConverter.convertToPresentation(item.getXyz(), String.class, null)).setCaption("Converter Column");

Moritz Christian
4 years ago May 10, 2017 6:55am