Update row, only some cells
Update row, only some cells
poisons
Posts: 25Questions: 3Answers: 0
I'm updating a table with 3 columns, by row id, using the method data() and with an array of the new values for all the 3 columns
table.row("#"+myId).data(['valueCol1','valueCol2','valueCol3']);
Is it possible to update only column 2?
Replies
Use
cell().data()
to update a single cell.The other option is to read the data for the whole row using
row().data()
, merge in your new data and then userow().data()
to update it (orrow().invalidate()
assuming you have mutated the array/object returned byrow().data()
).Allan
Thanks Allen, I solved with the
cell().data()
method