Difference between Clear with Draw and Add Rows with Draw in the table

Difference between Clear with Draw and Add Rows with Draw in the table

ShahzadMirzaShahzadMirza Posts: 1Questions: 1Answers: 0

Hello
I have a table and I am using this function to clear and draw the table like this

var table = $('#example').DataTable();
table.clear().draw(false);
table.row.add().draw(false);

what if i use

var table = $('#example').DataTable();
table.clear().draw();
table.row.add().draw(false);

I don't understand what is the false is doing in both draw. because i am facing some issue that you can find in here.
http://stackoverflow.com/questions/41957506/datatable-not-showing-the-data-but-table-is-filled-with-data-using-json-object

Kindly reply me according to the question that i have posted on the stackoverflow.

Thanks.

This discussion has been closed.