Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter/search based on other fields than the ones used in displaying data to the table #357

Open
alfie-max opened this issue Mar 16, 2020 · 3 comments

Comments

@alfie-max
Copy link

my concern is that, the gem assumes that search should only be done on the columns which are displaying on the table.. how can i skip the entire view_columns and write my own custom queries for searches?

@mmustala
Copy link

With table.ajax.url() you can set the ajax url to what ever you want. For example you can append some additional query strings from input fields outside datatables when the values in the input fields have changed. Then just reload the table and use those query parameters in the backend.

@n-rodriguez
Copy link
Member

my concern is that, the gem assumes that search should only be done on the columns which are displaying on the table.

you can add hidden columns in your datatables and search/filter on it.

@rollyar
Copy link

rollyar commented Apr 27, 2021

you can add hidden columns in your datatables and search/filter on it.

How make this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants