DataTable reinitialization with bugs?/Few HTML suggestions

DataTable reinitialization with bugs?/Few HTML suggestions

alexandremarquesalexandremarques Posts: 8Questions: 0Answers: 0
edited December 2010 in Bug reports
I got few questions, maybe my code is wrong but:

1 - Everytime i reinitialize the DataTable i get this problem:
[code]


....
[/code]
So everytime i reinitialize, this class gets wrapped again, and again and again.

2 - Heres how I append the data to my table (thats an ajax):
[code]
function(data) {
$("#Listagem").dataTable().fnDestroy();
$("#Listagem tbody").html(data);
$("#Listagem")
.dataTable({
"bRetrieve": true,
"bJQueryUI": true,
"sPaginationType": "full_numbers"
});
[/code]
Wasnt fnRedraw supposed to wrok without fnDestroy?

Btw, i guess that all elements generated by the plugin should have an id.

Thanks
This discussion has been closed.