Refiltering after loadData

Tags: #<Tag:0x00007efc6140c0e0>

I’ working with vanilla JS and for some cols I have filters. Works fne.
After updating some stuff by ajax I tried:

$.ajax({
    url: url,
    dataType: 'json',
    success: function (res) {
         hot.loadData(res);                       
         hot.getPlugin('Filters').filter();
    },
});

But I see the unfiltered version of table. Whats going wrong?

Hey @Knoeterich

The filter() method has to be triggered when you use any Filters API. In this example I do not know if res is a data that has been filtered on the server-side or your clear dataset that hasn’t have a filter yet.

Hi @Knoeterich

do we have any updates here? Did you manage to make the filtering work?