How to use datatable info elsewhere

How to use datatable info elsewhere

ZenZen Posts: 1Questions: 0Answers: 0

Hi!
I have a question about datatable plugin.
I want to use datatable info elsewhere on the page ("infoFiltered" and "sInfo").
In header I have search box which on keypress strat with table filtering. What I want to do is, to show how many rows are left in table. The same thing like table_info beneath the table.
I tried with clone() and append(). append() is the closest solution but not quite. I want table_info to be shown beneath table AND above my custom search field.

Replies

  • larsonatorlarsonator Posts: 54Questions: 4Answers: 2

    not a hundred percent sure what you are after, but you might be wanting to look at the events.

    http://www.datatables.net/reference/event/

    the xhr.dt even will give you direct access to the json returns (if server side) which i believe will give you the information your are after

This discussion has been closed.