re-initialize with fnDestroy problem

re-initialize with fnDestroy problem

pasqualepasquale Posts: 2Questions: 0Answers: 0
edited March 2011 in TableTools
Hi,
I use the following code to reinitialize data when change request.
It's ok. But the columns enlarge width on every request.
Have you got some solutions?
[code]
function reinitializeData()
{
$(document).ready(function() {
oTable.fnDestroy();
oTable.dataTable({
"bProcessing": true,
"bRetrieve": true,
"bJQueryUI": true,
"sAjaxSource": 'baseUrl.php'
} );
}
[/code]

Replies

  • muntasirmuntasir Posts: 1Questions: 0Answers: 0
    I tried just like you and found the same problem. I found that when the table is reinitialized it gets another for each column which makes it grow horizontally. i hope Allan will fix this problem.
  • allanallan Posts: 63,489Questions: 1Answers: 10,470 Site admin
    Are you using DataTables 1.8.0? This issue should be addressed in this release. If not can you give me a link to your page please?

    Allan
This discussion has been closed.