How to implement a numeric range in fotoer column filtering using ajax and serverside processing?
How to implement a numeric range in fotoer column filtering using ajax and serverside processing?
Hi,
I've implement ajax/serverside processing and column filtering in the footer. Everything is working fine, but I would like to have a number range in one of the columns. I would like to achieve this in the footer, not outside the table.
Would it be possible?
I've managed to render a from and to input elements as total[from] and total[to], but the column.search(input1.value).draw(); sends the main column name total not total[from].
Is it possible to override the field name being sent without altering the columns definition?
Thanks,
Michael.
Answers
One option might be to send those values using
ajax.data
as a function, like this example. You will need to retrieve the parameters and incorporate them into you your query string in the server side processing script.Kevin