FlowingCode / TwinColGridAddon

TwinColGrid Vaadin Add-on
https://www.flowingcode.com/en/open-source/
Apache License 2.0
7 stars 7 forks source link

addFilterableColumn with resize #115

Closed jonasrotilli closed 1 year ago

jonasrotilli commented 1 year ago

How to use an addFilterableColumn with resize? The user needs to be able to increase the column, because sometimes the entire text does not fit.

Is there any way to put rezise as you have in the grids in all columns, whether with filter or not?

This addon is very good!

javier-godoy commented 1 year ago

Hello. You need to add the filterable column with some of the overloads that accept String key as the last parameter, and then retrieve each column and configure it as resizable:

twinColGrid.addFilterableColumn(..., key);
twinColGrid.getSelectionGrid().getColumnByKey(key).setResizable(true);
twinColGrid.getAvailableGrid().getColumnByKey(key).setResizable(true);

(The API can certainly be improved, I'll make a note about this case)