How to refresh Datatable with data from AJAX call.

How to refresh Datatable with data from AJAX call.

phpMickphpMick Posts: 17Questions: 5Answers: 1

Hi,

I have two Datatables on my page.

When the user selects rows in the top one, the ids of these rows are used to retrieve the rows for the second Datatable. This is done via AJAX. How can I then load the Datatable with the data returned in the response?

Thanks,

Mick

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599
    Answer ✓

    Hi Mick,

    You could just call rows.add() on all of them, or row.add() on each row in turn,

    Cheers,

    Colin

  • phpMickphpMick Posts: 17Questions: 5Answers: 1

    Thanks Colin,

    I just found that as well. I will give it a whirl.

    Cheers,

    Mick

This discussion has been closed.