Datatable: Case of empty input box in custom filter

I have customised the filter function of the datatable and I always return true from the method because I don’t want to hide any value. I am just changing the css of the cell based on filter.
Problem here is when I clear filter I want that all css should get defaul css, but my custom filter method is not getting called on clearing the filter.

It is expected, as filter method doesn’t iterate through rows during filter-clear operation, it just restores original pre-filter state.

If you have created a custom filter control ( not default text_filter ), you can modify it to return non-empty value, even if it is empty. In such case filter will run through all rows, as filter ignores only empty value.

Also, you can always run code against all rows by using

grid.eachRow(function(id){
   //do something with row
});

http://docs.webix.com/api__ui.datatable_eachrow.html