After updating cell value, the value does not seem to change.
After updating cell value, the value does not seem to change.
Godrules500
Posts: 25Questions: 13Answers: 0
I am updating the cell value like this.
g_TableDT.row(index).data().SeqNo = value.SeqNo - 1
After I step past this, it shows that the value is correct. However, when I come back to here, the seqNo is back to what it was before. Could someone please provide me with some aid on what is going on.
This discussion has been closed.
Answers
I figured out the issue and it was unrelated to datatables.
What was happening was I was changing the value on the table, but not on the variable that handled the recreation of the datatable. After changing the incorrect value, I would call refresh/redraw, and the datatable would then redraw the table using the old value that was never changed.
Not sure how to mark this as closed, but it can be.
Thanks for the datatable plugin. It is an amazing tool!