In Vaadin 8.1, the Grid
API doc shows that we can pass a renderer as part of the column definition when calling addColumn
. But I do not see any setter methods for changing the renderer.
Is there any way to change the renderer on a column in the Grid object?
Column
rather thanGrid
Call
setRenderer
on the column rather than the grid.The column is represented by a class nested inside the grid class,
Grid.Column
. Pass a column ID to retrieve the particular column.There you call
setRenderer
.Replacing the renderer is shown in the Vaadin Framework guide, Grid page, section Column Renderers.