fnUpdate without updating the cell

fnUpdate without updating the cell

Rogier21Rogier21 Posts: 3Questions: 0Answers: 0
edited November 2013 in DataTables 1.9
Hello all,

I use x-editable in my datatables to edit values. I found out that the sorting will break when I update the value in the table.

I read on the forum that I need to implement "fnUpdate" so I did that. But even when I set the parameter "redraw table" to false, datatables will overwrite the text in the cell with the given value.

Is this default behaviour? Should I use another method?

Replies

  • Rogier21Rogier21 Posts: 3Questions: 0Answers: 0
    I added a new parameter to the fnUpdate function that won't render the display but I think there is a bug. When I sort the column and do a fnUpdate with a col and row number it will update the wrong column because it is sorted.
  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Can you show us the code you are using please? If you want to alter the contents of the data in the table, so that DataTables can see the updated data, then yes, fnUpdate must be used.

    Allan
This discussion has been closed.