Please can you provide a example on how to apply filter programatically, without use the “content: serverFilter” etc… Puting in short, I have 2 datatables side by side. When user click on left datatable I will use a text in cell clicked to apply as a filter when loading datatable at right. No input typed is needed. Data table is inside a tabview that is inside a layout. Thanks.
I guess I found a way… it works but i did not undertood (??)
$$(“datatree1”).attachEvent(“onAfterSelect”,function(id){
var text = this.getItem(id).state;
if (!text)
return grida.filter();
$$("body1").filter(function(obj){
return obj.descri == text;
})
})
Filtering api
http://docs.webix.com/desktop__filter_sort.html#contentfilteringandsorting
http://docs.webix.com/api__link__ui.proto_filter.html
//clear current filter
some.filter(); //without parameters
//clear by some value
some.filter("keyId", 123);
//clear by complex rule
some.filter(function(obj){
if (keyId > 100) return true;
return false;
})