I am using DataTables for Showing tables values…I have done column filtering using select menu …but I have to use both select menu and input box…
I am using DataTables for Showing tables values…I have done column filtering using select
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s essentially no different. Handle both through a callback. The method below will allow you to filter columns based on any input field on a server-side created table:
So, the fnServerParams is what you’re concerned about. You supply a name and value for each box you want to pass. These come through to the ajax page as $_REQUEST values, which you can then use in your server-side script to filter via your chosen method. To make the table redraw, you’d simply have an fnDraw done onclick of a button or on mouseup of a field.
Here’s the official datatables example for doing this with a dom-based table. Perhaps it’s a little less involved, but it’s also limited by how big the table can get (I wouldn’t personally do more than 10,000 records with a dom-based table)