The 'Clear Filter' menu item from the FilterEditor of the ListGrid does not clear the filter if a column is hidden.
Problem can be reproduced on the SmartClient Adaptive Filter example on http://smartclient.com/#adaptiveFilterFS using SmartClient Version: v9.1p_2014-07-13/Pro Deployment (built 2014-07-13) on Firefox 31.0 and Chrome 36.0
Steps to reproduce:
1) Open the Adaptive Filter example on http://smartclient.com/#adaptiveFilterFS
2) Enter a value (e.g. '45300') in the SKU filter editor and press Enter
=> The list is filtered according to the filter
3) Right click on the header and select Column menu item from the popup menu to hide the SKU column without clearing the filter
=> The SKU column is hidden
4) Right click on the header and select 'Clear Filter' menu item to clear the menu
ERROR> Nothing happens, the filtered results is still displayed. Expecting the filter to be cleared and displays the full list
5) Right click on the header and select Column menu item from the popup menu to show the SKU column again
ERROR> The filter value entered in step 2) is still in the filter editor. Expecting all criterion on filter editor to be empty
It seems that when 'Clear Filter' is invoked, ListGrid.filterEditor._editRowForm.values are not cleared when the column is hidden (not in _editRowForm.items anymore) and these values are then being overlay with criteria from the visible items to form the search criteria when ListGrid.getFilterEditorCriteria() is called.
----------------
SmartClient Version: v9.1p_2014-07-13/Pro Deployment (built 2014-07-13)
Windows 7 Firefox 31.0 and Chrome 36.0.1985.125 m
Problem can be reproduced on the SmartClient Adaptive Filter example on http://smartclient.com/#adaptiveFilterFS using SmartClient Version: v9.1p_2014-07-13/Pro Deployment (built 2014-07-13) on Firefox 31.0 and Chrome 36.0
Steps to reproduce:
1) Open the Adaptive Filter example on http://smartclient.com/#adaptiveFilterFS
2) Enter a value (e.g. '45300') in the SKU filter editor and press Enter
=> The list is filtered according to the filter
3) Right click on the header and select Column menu item from the popup menu to hide the SKU column without clearing the filter
=> The SKU column is hidden
4) Right click on the header and select 'Clear Filter' menu item to clear the menu
ERROR> Nothing happens, the filtered results is still displayed. Expecting the filter to be cleared and displays the full list
5) Right click on the header and select Column menu item from the popup menu to show the SKU column again
ERROR> The filter value entered in step 2) is still in the filter editor. Expecting all criterion on filter editor to be empty
It seems that when 'Clear Filter' is invoked, ListGrid.filterEditor._editRowForm.values are not cleared when the column is hidden (not in _editRowForm.items anymore) and these values are then being overlay with criteria from the visible items to form the search criteria when ListGrid.getFilterEditorCriteria() is called.
----------------
SmartClient Version: v9.1p_2014-07-13/Pro Deployment (built 2014-07-13)
Windows 7 Firefox 31.0 and Chrome 36.0.1985.125 m
Comment