treetable external filter

Hi, webix team & user.
I want to do filtering in treetable with external filter.
How to put filterMode in external filter ?
this is my example code

`
const search_toolbar = {
            margin:10, rows:[
                {
                    view:"search", 
                    name:"client_name",
                    label:_("Client"), 
                    labelPosition:"top",
                    placeholder:_("Client Name),
                    on:{
                        onTimedKeyPress:function(node)
                        {
                            webix.message(node);
                            var value = this.getValue().toLowerCase();
                            var table = $$("dt1");
                            if (!value)
                                table.filter();
                            else {
                                var res = table.filter(function(obj){
                                    return obj.name.toLowerCase().indexOf(value) != -1;
                                });
                            };    
                        }
                    },
                    filterMode:{
                        level:1
                    },
                              
                }
            ]
        };
`

And it still didn’t work. Thx

Hey @frizky, the search view has no such property as filterMode hence why the code above wouldn’t work for that. You have to set the filterMode inside your treetable view, either by defining it in the config beforehand: https://snippet.webix.com/fpk7ik31 or by using the define method to redefine the config dynamically, for instance: https://snippet.webix.com/u8c1o1ij.

You can read more about possible filterMode settings here.

thx @Dzmitry