DataTables don't show changes on draw

DataTables don't show changes on draw

abaddonabaddon Posts: 6Questions: 0Answers: 0
edited January 2013 in General
Hy,

I've a little problem with the redraw function. After initialisation of the dataTable, i add some classes to TDs and when I sort my array, all these changes dont appear.

I would like to know if there was a function to tell dataTable to consider these changes.

Thanks

Replies

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    Please link to a test case so I can fully understand the issue: http://datatables.net/forums/discussion/12899/post-test-cases-when-asking-for-help-please-read

    Allan
  • abaddonabaddon Posts: 6Questions: 0Answers: 0
    Sorry for the lack of clarity of my post.

    Here an exemple of the kind of problem I encounter : http://live.datatables.net/ubenel/19

    You can see that some columns are hidden. Then I sort the table by cliking on a column.

    Here come my problem, you can see that some cells that where having

    [code]style="display:none;"[/code]
    are show.

    What I simply do is to clone some rows (Japon & Corée)
    [code]var listChildren = $('#'+e.nTable.id+" .child-lvl-1").clone(true);[/code]
    and then I replace them in the table.

    After having examine the problem, I supposed that when I use clone, it returned me rows as they were after the creation of the table.

    I do that because I use the jQuery pluggin treeTable and want to conserve the hierachy even when I sort my table.
This discussion has been closed.