I’m faced with a strange behaviour of the combination mentioned in the title.
Two situations:
First: I use the filterRow to filter the Grid. This works fine. Then I use the filterBuilder to Filter the grid. This works fine. Good
Second: I use filterBuilder to filter the Grid. This works fine. The I use the filterRow to filter the Grid. Nothing happens.
Is this a bug or do I have to set some parameters that I dont know ?
I want to combine both, which means I want to set the criteria in both filter instances.
TIA
Jakob
RestDataSource rDS = new RestDataSource // I have my own one, just to give an example
ListGrid grid = new ListGrid();
grid.setShowFilterEditor(true);
grid.setDataSource(rDS);
FilterBuilder fb = new FilterBuilder();
fb.setDataSource(rDS);
filterButton.addClickHandler(new ClickHandler(){
public void onClick(ClickEvent event)
{
grid.filterData(fb.getCriteria());
}
});
This usage is a little strange. When the FilterBuilder is filtering, the criteria being applied cannot really be shown in the FilterEditor. You may want to clarify the UI by only showing one at a time?
It’s not strange to offer both modes of filtering, however, showing both at the same time creates ambiguous situations for the user. For example, if the user has entered criteria in the FilterBuilder to find field values ending in “foo”, what should the filterEditor show? Both showing nothing and showing “foo” would be misleading, and it’s not clear what should happen if the user now enters criteria for the same field in the filterEditor.
have you managed to use FilterBuilder and showFilterEditor option at the same time ?
I have got the same bug, as Jakib mentioned. After using filterbuilder, I can’t use row filter any more.
Thanx for any help.
PS. I don’t show two filters at the same time. When row filter is used then filterBuilder is hidden in section,
and when filterBuilder is used then showFilterEditor option is set to false.
I’ve found that after at last one using of FilterBuilder, then filter method on grid always sends criteria in AdvancedCriteria format. Can we avoid it and back to normal (not advanced) criteria ?
And one more information. After using filterbuilder, when I try to use row filter, enter a value and click enter on dev console we see:
15:51:57.541:KPR5:INFO:ResultSet:isc_ResultSet_1494 (created by: isc_OID_565):setCriteria: filter criteria unchanged
It seems to me, that values from row filter are not visible when creating criteria.