Question about fnInitComplete and fnDrawCallback

Question about fnInitComplete and fnDrawCallback

stangstang Posts: 4Questions: 0Answers: 0
edited March 2014 in General
Hi,
I have searched the forums, but I wanted to get clarification on this. I have a table dynamically generated via an Ajax call to a JSON file (or web service that returns JSON). I want to execute functions after the tables is finished drawing.

The forums indicate that fnDrawCallback() seems to be the correct callback function for this purpose. Then, what does fnInitComplete() do? It sounds like fnInitComplete() is fired after initialization but before anything is drawn. Correct?

Thanks.

Replies

  • lokomolokomo Posts: 8Questions: 0Answers: 0
    fnInitComplete() is invoked after fnDrawCallback(). But if you reload the Table, only fnDrawCallback() is invoked.
  • stangstang Posts: 4Questions: 0Answers: 0
    Thank you for explaining the difference.
This discussion has been closed.