rows().data() does not appear to be loaded in drawCallback

rows().data() does not appear to be loaded in drawCallback

am262327am262327 Posts: 1Questions: 1Answers: 0

Thanks for datatables: I am loading info from the backend and then manually creating a table with calls to $dt.row.add. When I set the drawCallback option, inside the function body calls to api().rows().data() does not produce the rows as expected. However, if I add a setTimeout with delay of 1000, api().rows().data() works and returns them all (2200 rows).

Am I doing something wrong?

Answers

  • allanallan Posts: 63,464Questions: 1Answers: 10,466 Site admin

    Happy to have a look at the page and help debug it if you can link to it so I can see the code please.

    Thanks,
    Allan

This discussion has been closed.