Draw table after ajax call completed.

Draw table after ajax call completed.

debnathdebnath Posts: 1Questions: 1Answers: 0

Hello,
I wanted to draw the datatable after finishing the AJAX call. Actually I do not want to display the table when there is no data. I was able to do that by putting if (oTable.fnSettings().fnRecordsTotal() == 0) in "fnInitComplete". But the problem is it's first drawing the table and then its disappearing. My plan is if I can draw the table after getting success from AJAX call then I think I can stop drawing the table.

Or is there any other way to do that? I just do not want to display table until there is any data, instead I want to display something else.

Please help me ASAP.

This discussion has been closed.