@paulyb263
Hi there.
Internally I was using Ext.tree.TreeFilter.
Instead of the Ext default implementation, you can use Ext.ux.tree.TreeFilterX from Saki's extension:
http://extjs.com/forum/showthread.php?t=55489
So you can:
1)Add Saki's extension.
2)Change my code Ext.ux.TreeFilterPlugin
to use Ext.ux.tree.TreeFilterX
PHP Code:
textField = new Ext.ux.SearchField(textFieldCfg);
filter = new Ext.ux.tree.TreeFilterX (treePanel, defaultCfg.treeFilterCfg); //<------ use TreeFilterX
tbar.insertAt(textField, defaultCfg.insertAt);
3)Create the contains filter and use it
PHP Code:
//Custom filter implementation;
Ext.ux.ContainsTreeFilter = function(){
//@Public function called before filter is applied(before the execution of the filterFn;); return true to cancel the execution of the operation.
this.beforeFilterFn = function(text, treePanel, treeFilter){
return false
}
//@Public function called for each node on the tree starting from the root.
this.filterFn = function(node, nodeAttribute, text, treePanel, treeFilter){
var re = new RegExp('.*' + text + '.*', 'i');
return re.test(node.attributes[nodeAttribute]);
}
//@Public function called after filter after the execution of the filterFn.
this.afterFilterFn = function(text, treePanel, treeFilter){
return;
}
}
Hope this helps