Indivudual column search not working with ScrollY
Indivudual column search not working with ScrollY
Yogen
Posts: 2Questions: 1Answers: 0
Hi,
I'm currently developping a Datatable with individual column search, all is working but when I try to add the scrollY parameter to my DataTable my column search stop working.
Here u can see my DataTable : http://live.datatables.net/loxeyope/1/edit?html,js,output
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Yes - when you enable scrolling DataTables has to split the table into two (or three if you have a footer like here) individual tables. That allows the middle table, which visually shows the body, to scroll without scrolling the header and footer.
So to get the
thead
andtfoot
elements you need to use thetable().header()
andtable().footer()
methods, respectively.E.g.
becomes
Updated example: http://live.datatables.net/loxeyope/5/edit .
Allan
Thanks a lot for this quick answer Allan !