omines / datatables-bundle

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

Column search not work #107

Closed teamwork-it closed 4 years ago

teamwork-it commented 4 years ago

Hello,

I use Omines bundle 0.3.0, i use it for display a entity listing on page and it's work fine. I have a problem when i try to use filter on specific column. `.then(function(dt) { dt.page.len(25).draw(); $("body").on("click","#showAll",function(e){ if ($(this).is(':checked')){ dt.search('').draw(); }else { dt.columns(1).search(1).draw(); }

            });
    });`

The ajax query is sent with good param in column 1 ==> columns[1][search][value] | 1 but the return results are not filtered, all results are returned. i know i am not the first to meet this problem but there is never anwser so plesae not close or delete my post.

shades684 commented 4 years ago

Basically we haven't implemented this like said in issue #2

You can implement this though because the value is still being send to the server, you could read the request variable and use it in a custom criteria provider.

vaibhavpandeyvpz commented 4 years ago

I have proposed a PR for this #120

curry684 commented 4 years ago

Closing as #2 already describes the feature request and #120 proposes a fix.