filter result in new table

filter result in new table

mitsmits Posts: 15Questions: 0Answers: 0
edited February 2010 in General
Hello,

I have a datatables and small problem. I would like to know how can I show filtering results in other tables (in orginal table also)? Now results is the same table.

How can I do this ?

Replies

  • mitsmits Posts: 15Questions: 0Answers: 0
    for example:

    [code]

    ...



    ...

    [/code]

    I have search/filter input in orginalTable and resultTable and when I keyup on this inputs result should be showing in orginalTable and resultTable.

    Any ideas ?
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    DataTables tables are (almost) completely independent from one another - so what you would need to do is detect the filtering on one of them (attach your own filtering function to the input), and then apply that to the other as well.

    Allan
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    I'd forgotten about this filter: http://datatables.net/plug-ins/api#fnFilterAll - which might help you.

    Allan
This discussion has been closed.