Update sorting after ajax change

Update sorting after ajax change

johncolvinjohncolvin Posts: 2Questions: 0Answers: 0
edited October 2010 in General
I have a datatable in which I manipulate one of the table elements through ajax on a click event. This changes the content of the cell and I want the column to sort properly after this. I'm looking for a function that will reload the sorting cache. I've tried using fnDraw as the callback to jQuery.load, but this is not solving the problem.

Any suggestions?

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    How are you updating the content at the moment? Just a standard DOM or jQuery method? If you use fnUpdate ( http://datatables.net/api#fnUpdate ) it will update the DataTables internal state as well as the drawn page.

    Allan
This discussion has been closed.