AliHichem / AliDatatableBundle

Symfony2 Ajax Datagrid Bundle for doctrine2 entities
MIT License
112 stars 72 forks source link

Filter on column data #100

Closed MaxBear closed 9 years ago

MaxBear commented 9 years ago

jquery datatable by default allows one to filter column data by search, I'd like to make the such a filter based on existing column data, similar to this http://legacy.datatables.net/release-datatables/examples/api/multi_filter_select.html But how can I incorporate the example to alidtattablebudle ?

WickedSilver commented 9 years ago

Here are 2 options i can think of:

  1. pass distinct values for a column from the controller using a database query
  2. use the code given by the example

If you can give an example of your current code i could give you a better example. Also if you prefer 1 of the options i gave you, please let me know :)

The first option renders server side so will take a bit more time loading the data although it will always be correct data and the load will be server side, the second option will user client side resources and will probably be faster.