$.fn.datatable.ext.search.push apply on specific table

$.fn.datatable.ext.search.push apply on specific table

erpankajserpankajs Posts: 4Questions: 0Answers: 0
edited March 2016 in Free community support

I am using this for custom search, but getting some issue. My script.js file container appx. 12 DataTables. Only one table need the custom search. I am searching this $.fn.datatable.ext.search.push form the doc. But not found any way to fix this on specific table.

Suggest me how to fix this only to one DataTable when js file contains more tables.



  • allanallan Posts: 54,886Questions: 1Answers: 8,602 Site admin

    At the moment what you need to do is use settings.nTable.id which will give you the table id inside the function you add. Then you can check to see if you want to apply your filter to that table or not.

    I know its not brilliant that, I will be improving that for the next major version.


  • erpankajserpankajs Posts: 4Questions: 0Answers: 0

    Thanks allan

This discussion has been closed.