'Data table custom ajax filter
I am using a data table with server-side processing in my react application. I have a custom search field and one select dropdown for filtering the rows. When I change the select option and click on the submit button I want to filter the table based on a column. For search, I am using $('#table').DataTable().search(e.target.value).draw(); I know we can pass additional data to ajax call to filter and use $('#table').DataTable().ajax.reload();. But the problem is I only want the select filter to work on button click. If I pass the value of the select dropdown in ajax the filter will work for every ajax request sent to the server.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
