Completed
Last Updated: 05 Jul 2016 16:11 by Pascale
Matthias
Created on: 20 May 2015 09:17
Category: Kendo UI for jQuery
Type: Feature Request
1
Grid: Filter with empty string will clear current filter
After I filtered a column and deletes the filter content and press again the "Filter"-Button, nothing happens. Filter with empty string should clear the filter on the column,
5 comments
Pascale
Posted on: 05 Jul 2016 16:11
I agree with this suggestion... moreover, this use case is more frequent with the filtering by checkboxes... the user uncheck all checkboxes then click on "Filter" button... nothing happens. This is really not trivial.
Anna
Posted on: 02 May 2016 23:57
May I ask we not to fix it as well for filter menu as well? I think the current behavior (do nothing for "" filter) is inconsistent and buggy. It should act at least one of the ways below when filter textbox is empty: 

1. Click "Filter" will reset the filter (function same as Clear Filter button)
2. "Filter" button is disabled when there is no input
3. Click "Filter" will do nothing, but the filter menu will stay open and have error indicator to let user know nothing isn't a valid filter criteria. At very least, if user open the filter menu again, the filter input box should keep the last valid search expression.
ADMIN
Telerik Admin
Posted on: 21 May 2015 09:45
That's correct, as filtering by an empty filter is not supported except for the filter row mode. In the other cases you have the 'Clear' button to reset the previously applied filter.
Matthias
Posted on: 20 May 2015 15:20
What if I'm not using Clear?
For example:
http://demos.telerik.com/kendo-ui/grid/remote-data-binding
Step 1: Filter city starts with: Re --> Press Filter
Step 2: Filter city clear textbox --> Press Filter (and not clear)
Data will not be refreshed but it should have the same functionality than clear.
ADMIN
Telerik Admin
Posted on: 20 May 2015 09:47
The filter pattern is cleared when you press the 'Clear' button from the filter menu, Matthias. This behavior is by design and can be tested for any column in the following examples:

http://demos.telerik.com/kendo-ui/grid/local-data-binding
http://demos.telerik.com/kendo-ui/grid/filter-multi-checkboxes

The filter will be reset (on focus blur) when clearing the filter pattern using a filter row, as demonstrated here:
http://demos.telerik.com/kendo-ui/grid/filter-row

Hope this explanation makes sense.