I am using Datatables to display tabular data in my Web application, and have configured it to make use of server-side processing, i.e. query the server via AJAX for filtered data. I want to filter according to additional parameters that are specific to my application, i.e. corresponding to some user options (f.ex. via a checkbox in the UI). How do I make DataTables pass these additional filter parameters to the server?
Share
The solution is to employ DataTables’ fnServerParams option, which allows you to add custom parameters to be sent in the XMLHttpRequest sent to the server. For example: