if you set a column filter value and then click filter in the Grid Column Filter Pop, the grid will filter.
If you then manually set the filtered value back to Nothing ("") by deleting the value in the text box and click filter, nothing will happen, and the grid will still be filtered on the previous value. The expected behaviour woudl be for the Grid to be reloaded with no filters when none are specified and the filter button is clicked.
This is mildly inconsistent when using the standard grid filter functionality, and very broken if you are customising the grid filters yourselves and using dropdowns or multiselects as I am.
In order to fix this behaviour, the following simple change neds to be made to the filter method of the FilterMenu object in the lastest source.
var
FilterMenu = Widget.extend(
.
.
.
filter:
function
(expression) {
expression =
this
._merge(expression);
if
(expression.filters.length) {
this
.dataSource.filter(expression);
}
else
{ // Add these lines
this
.dataSource.read(); // Add these lines
} // Add these lines
},
Any chance this fix or similar could be incorporated into a future build ?