fnDraw after external table modification overwrites external changes

fnDraw after external table modification overwrites external changes

rileyriley Posts: 1Questions: 0Answers: 0
edited May 2013 in General
I'm in a bit of a hacky situation where I'm using DataTables to manage a table that is also controlled by some other JS. The external JS occasionally changes the values in the table, but when DataTables redraws, those external changes are lost.

I may be able to workaround this by never redrawing the table, but I'd like to maintain the integrity of the DataTables object. What do I need to do to tell DataTables that some cells have been changed so that redraw uses the new value?

Thanks~

Replies

  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin
    > What do I need to do to tell DataTables that some cells have been changed so that redraw uses the new value?

    Use the API :-). Use fnUpdate to update a row, fnDeleteRow to delete a row, etc.

    Allan
This discussion has been closed.