Can an element in the dom external to dataTables fire a DT event?

Can an element in the dom external to dataTables fire a DT event?

An_AlienAn_Alien Posts: 6Questions: 4Answers: 0
edited May 2019 in Free community support

I have a chart which I am rendering above DT. I'd like the user to feel like the chart and dataTable are one. If user interacts with chart, DT should perform search/filter.

The DT is using server side processing.

Is there an example I can reference for this?

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 21,144Questions: 26Answers: 4,918
    Answer ✓

    You can use the search() or column().search() API's for this. In your events for the chart just use one of the search APIs along with draw() and Datatables will send the search request, via server side processing, to the server.

    Kevin

This discussion has been closed.