melistik / vaadin-grid-util

simplify the use of vaadin's grid and add features
https://vaadin.com/directory/component/gridutil
MIT License
32 stars 21 forks source link

Set Filtered Value from Code #34

Closed jamariSetual closed 7 years ago

jamariSetual commented 7 years ago

I am not sure, if it is already implemented, but I don't find a way to set the value of a filter.

I use a context menue to set a QuickFilter. I can asked for the component:

GridCellFilter gridCellFilter = extGrid.getGridCellFilter(); Component component = gridCellFilter.getFilterRow().getCell(propertyId).getComponent();

But it seems, there is no way to set an Filter, like

gridCellFilter.setValue(propetyId, value);

I find a workarround, to 'parse' the componet hierachie to set the values directly on the component (doesn't work with GridCellFilter.setTextFilter(...)) but that's not the way i would like to handle it.