Multiple datatables in the same page

Multiple datatables in the same page

valter479valter479 Posts: 9Questions: 0Answers: 0
edited October 2013 in General
Hi,

I have multiple tabs and each tab has a table. Is it possible to have one search field for all the tables?

I try to use the keyup event and trigger dataTable().fnFilter(searchInputValue), but that only works with visible table. Only one table is visible, all the other are hidden because of the tabs.

Any suggestions?

Thanks

Replies

  • valter479valter479 Posts: 9Questions: 0Answers: 0
    I figure it out. I had use $(".datatable").each().
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Will be much easier in 1.10 where the API applies to all tables in an instance :-)

    Allan
This discussion has been closed.