DataTable reinitialization with bugs?/Few HTML suggestions
DataTable reinitialization with bugs?/Few HTML suggestions
![alexandremarques](https://secure.gravatar.com/avatar/26380000c47753b2bda3bfa3b95ae491/?default=https%3A%2F%2Fvanillicon.com%2F26380000c47753b2bda3bfa3b95ae491_200.png&rating=g&size=120)
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
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.