View Full Version : Improvement to StoreFilterField

11 Dec 2009, 3:58 PM
Currently with GXT 2.0+ the StoreFilterField will trigger upon the user entering any character. I overrode the applyFilters( ) method to instead look for a minimum number of characters. I would think this would be something others might want and it'd be easy to modify the core code.

What would need to be done is
(a) create an internal field for the minimum length with a setter/getter
(b) modify applyFilters to instead of looking for 0 look for the minimum length

The benefit here would be if you are using a dynamic server-loaded tree or your tree is sufficiently large, you would only start to filter once the user has provided some sufficient information.



15 Dec 2009, 6:24 AM
it would be nice if you post your full code of your new StoreFilterField in the "User Extensions and Plugins" category http://www.extjs.com/forum/forumdisplay.php?f=44

17 Dec 2009, 10:05 AM
I agree, this should be part of StoreFilterField.