Required Information

Version(s) of Ext GWT

GXT 3.1.2


Browser versions and OS

(and desktop environment, if applicable)




Virtual Machine

No

Description

After adding a filter to TreeStore, calling removeFilters() or setEnableFilters() does nothing.


Run mode

Both


Steps to reproduce the problem



  1. Create and populate a Tree with a TreeStore

  2. Enable filters

  3. add a filter

  4. remove the filter or disable filters




Expected result

Removing or disabling filters should enable and show filtered items.

Actual result

The filtered items are still hidden.


Test case



Code:



folderTreeStore.setEnableFilters(true);
folderTreeStore.addFilter(filter);
List<Folder> filtered = folderTreeStore.getAll();
folderTreeStore.removeFilters();
folderTreeStore.setEnableFilters(false);

Helpful Information

Possible fix

Do not call isFiltered() in TreeStore.applyFilters()