omines / datatables-bundle

DataTables bundle for Symfony
https://omines.github.io/datatables-bundle/
MIT License
261 stars 114 forks source link

Can't filters with jQuery #273

Closed Saikurin closed 2 years ago

Saikurin commented 2 years ago

I have a lot of filters in my TWIG page that I need to filter my datatable table.

So I initialize my datatable table with the default parameters and I launch the search but nothing happens.

$(function () {
            $('#folders').initDataTables({{ datatable_settings(datatable) }}).then(function (dt) {
                dt.columns.adjust().draw();
                $("#filterZoneSelect").on('change', function (e) {
                    dt.columns(2).search(this.value).draw();
                });
            });
});
roman-1983 commented 1 year ago

Why did you close it? What is the solution?