Update just one row
Update just one row
Samantha1999
Posts: 4Questions: 0Answers: 0
in DataTables
Hi, is there a method for updating just one row of a table when the data option is updated?
Replies
Is this using Editor? I'm not too clear what you mean by "when the data option is updated" - please can you expand.
Colin
Just like Colin I am not 100% sure I understand your problem. I am assuming you have an ajax sourced table and you don't want to reload the entire table because of just one previous update.
I have a similar situation: I want to avoid an ajax relad of my contract table and hence do a proprietary ajax call in order to retrieve certain cell values. On "success" I update table cells directly and also the data source of one particular field in order to make sure calculations done with this field are done properly. That was the most difficult thing for me: Understanding that updating a cell doesn't automatically mean that the data source Datatables / Editor uses to supply the field values is being updated as well.
Please see this as well:
https://datatables.net/reference/api/cell().data()
https://datatables.net/reference/api/draw()