When using the pre-alpha version 3.0.0, filterable columns do not display the filter components:
This happens because the additional header row is appended before calling setHeader. If there are no existing header rows, appendHeaderRow creates the first row, which is also the defaultHeaderRow used by setHeader
Grid<Integer> grid = new Grid<>();
var col = grid.addColumn(x -> x);
HeaderRow header = grid.appendHeaderRow();
header.getCell(col).setText("FILTER");
col1.setHeader("HEADER");
In version 2, each call to addColumn was immediately followed by setHeader (because all the methods that created a column received header as a parameter). Particularly, addFilterableColumn used to set the header before creating the additional header row.
When using the pre-alpha version 3.0.0, filterable columns do not display the filter components:
This happens because the additional header row is appended before calling
setHeader
. If there are no existing header rows,appendHeaderRow
creates the first row, which is also thedefaultHeaderRow
used bysetHeader
In version 2, each call to
addColumn
was immediately followed bysetHeader
(because all the methods that created a column received header as a parameter). Particularly,addFilterableColumn
used to set the header before creating the additional header row.