If I setHeader from the program in Grid.Column, the filterable icon disappears

Dear Support

JMix 2.1.3

I have a Grid where the columns have filterable=“true”.
<column property="name1" filterable="true"/>

As soon, as I am setting the column header, the icon from filterable disappears !

	String headText = "prg header";
	int x = 1;
	List<Grid.Column<Test>> columns = testsDataGrid.getColumns();
	for ( Grid.Column<Test> col : columns ) {
		col.setHeader(headText + " " + x++);
	}

This seems a bug or what am i doing wrong ?

Best regards

Felix

src.zip (3.0 MB)

Hi!

As noted in the documentation: What’s New :: Jmix Documentation

This is a preview feature. Its look and feel, as well as implementation details, may change significantly in future releases.

The header filter is an experimental feature. Therefore, its implementation was changed in version 2.2.
In version 2.2, the filter header is a separate component, the values of which can be stored in the URL.

Also, due to the fact that this is a separate component, it is possible to track their changes in the header text to save the filtering icon.

By the way, in version 2.1, the filter in the header is just a special component that was inserted only once when loading the column.
If you change the header after this, the filtering disappears.

Regards,
Dmitriy

Hi Dmitriy
Thank you for the fast reply !
Is there already an expected releasedate for the 2.2 Release ?
Regards
Felix

There is no exact date yet. Expected in the next few weeks.
The RC-1 is currently being published.